行程交付
原能力
输出每日安排、服务方联系方式、凭证索引及离线可用的关键信息。(细化版 p.10–11)
首选项目
icalendar(BSD-2-Clause(上游))。 icalendar
匹配范围
日历事件、文档导出交付安排和凭证索引。
源码
icalendar · class Calendar(
src/icalendar/cal/calendar.py · 48–61 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
class Calendar(Component):
"""
The "VCALENDAR" object is a collection of calendar information.
This information can include a variety of components, such as
"VEVENT", "VTODO", "VJOURNAL", "VFREEBUSY", "VTIMEZONE", or any
other type of calendar component.
Example:
Create a new Calendar:
>>> from icalendar import Calendar
>>> calendar = Calendar.new(name="My Calendar")
>>> print(calendar.calendar_name)
My Calendar
Pandoc · optToOutputSettings scriptingEngine opts = do
src/Text/Pandoc/App/OutputSettings.hs · 66–79 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
optToOutputSettings scriptingEngine opts = do
let outputFile = fromMaybe "-" (optOutputFile opts)
when (optDumpArgs opts) . liftIO $ do
UTF8.hPutStrLn stdout (T.pack outputFile)
mapM_ (UTF8.hPutStrLn stdout . T.pack) (fromMaybe [] $ optInputFiles opts)
exitSuccess
epubMetadata <- traverse readUtf8File $ optEpubMetadata opts
let pdfOutput = map toLower (takeExtension outputFile) == ".pdf" ||
optTo opts == Just "pdf"
let defaultOutput = "html"
defaultOutputFlavor <- parseFlavoredFormat defaultOutput
- Copyright : Copyright (C) 2006-2024 John MacFarlane
实现与验收要点
隐私、离线凭证权限与实际更新状态。