离线备查
原能力
整理必要地址、回执编号及联络信息,控制同行者能看到的证件资料范围。(细化版 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
实现与验收要点
脱敏、分角色访问、撤回及离线更新。