#!/usr/bin/env python # # This file is part of the LibreOffice project. # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # import sys, os, getopt, signal sys.path.append(sys.path[0]+"/to-wiki") import wikiconv2 # FIXME do proper modules from getalltitles & wikiconv2 # [so far this is in fact just a shell thing] def usage(): print ''' help-to-wiki.py [params] [path to l10n] Converts .xhp files into a wiki -h, --help - this help -n, --no-translations - generate only English pages -r, --redirects - generate also redirect pages Most probably, you want to generate the redirects only once when you initially populate the wiki, and then only update the ones that broke.\n''' def create_wiki_dirs(): dirs = [ "Common", "Basic", "Calc", "Chart", "Draw", "Impress", "Math", "Writer", "swriter", "scalc", "simpress", "sdraw", "smath", "schart", "sbasic", "sdatabase" ] try: os.mkdir( "wiki" ) except: sys.stdout.write( "wiki already generated - the wiki/ subdir exists\n" ) sys.exit( 1 ) for i in dirs: try: os.mkdir( "wiki/" + i ) except: pass # Langs to handle (fully translated or otherwise important) langs = ['', 'ast', 'bg', 'bn', 'bn-IN', 'ca', 'cs', 'da', 'de', \ 'el', 'es', 'eu', 'fi', 'fr', 'hu', 'it', 'ja', 'km', \ 'ko', 'nb', 'nl', 'om', 'pl', 'pt', 'pt-BR', 'ru', \ 'sl', 'sv', 'tr', 'vi', 'zh-CN', 'zh-TW' ] # Argument handling try: opts, args = getopt.getopt(sys.argv[1:], 'hnr', ['help', 'no-translations', 'redirects']) except getopt.GetoptError: usage() sys.exit(1) generate_redirects = False for opt, arg in opts: if opt in ('-h', '--help'): usage() sys.exit() elif opt in ('-n', '--no-translations'): langs = [''] elif opt in ('-r', '--redirects'): generate_redirects = True def signal_handler(signal, frame): sys.stderr.write( 'Exiting...\n' ) sys.exit(1) # Do the work signal.signal(signal.SIGINT, signal_handler) create_wiki_dirs() print "Generating the titles..." os.system( "python to-wiki/getalltitles.py source/text > alltitles.csv" ) try: po_path = args[0] except: po_path = '../translations/source' sys.stderr.write('Path to the .po files not provided, using "%s"\n'% po_path) # do the work for lang in langs: wikiconv2.convert(generate_redirects, lang, '%s/%s/helpcontent2/source'% (po_path, lang)) # vim:set shiftwidth=4 softtabstop=4 expandtab: 04.11'>distro/collabora/co-24.04.11 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/vcl/source/pdf
AgeCommit message (Expand)Author
2023-10-18tdf#157517 vcl: PDF/UA export: add PDF/A extension schema to XMPMichael Stahl
2023-09-04tdf#138792: PDF export: export metadata dc:formatSarper Akdemir
2023-09-04tdf#138792: PDF export: add batch of dublin core attributesSarper Akdemir
2023-09-04tdf#138792: PDF export: export metadata pdf:PDFVersionSarper Akdemir
2023-09-04tdf#138792: PDF export: export metadata xmp:ModifyDate, xmp:MetadataDateSarper Akdemir
2023-07-23vcl: Drop now unneeded DevicePoint typedefKhaled Hosny
2023-07-07tdf#153472 vcl: PDF/A export: produce valid XMP metadataMichael Stahl
2023-06-30tdf#156084: Fix PDF export of bitmap color fontsKhaled Hosny
2023-06-08pdfium: better suport for annotations and some fixesJaume Pujantell
2023-01-20tdf#153047 sw: fix PDF export of content controls in placeholder modeMiklos Vajna
2022-11-25pdfium: reduce size if cannot create bitmapSzymon Kłos
2022-11-16sw content controls, date: improve PDF export testMiklos Vajna
2022-10-06pdfium: drop not needed annot.patch.1Miklos Vajna
2022-09-23sw content controls, combo box: add PDF exportMiklos Vajna
2022-09-21use more string_view in vclNoel Grandin
2022-09-20sw content controls: add a11y description for PDF exportMiklos Vajna
2022-09-16sw content controls: add PDF export of font propertiesMiklos Vajna
2022-09-13sw content controls, checkbox: add PDF exportMiklos Vajna
2022-08-25use DevicePoint and SubPixelToLogic to return to source coord systemCaolán McNamara
2022-07-20tdf#127236 vcl: fix missing encryption of PDF images during exportMiklos Vajna
2022-05-01use more string_view in variousNoel Grandin
2022-04-08move comphelper::string::toInt32 to o3tlNoel Grandin
2022-04-08use more subView when converting to Int32Noel Grandin
2022-02-03Make inserted or pasted PDF sharper on macOSTor Lillqvist
2021-11-12external: update pdfium to 4699Miklos Vajna
2021-09-23external: update pdfium to 4643Miklos Vajna
2021-09-07Avoid repeating the return type from the declarationMiklos Vajna
2021-08-27Take the PDF graphic rendering DPI into account when exportingTomaž Vajngerl
2021-08-04Remove harmful static_cast<int>Stephan Bergmann
2021-07-14external: update pdfium to 4568Miklos Vajna
2021-06-18Simplify a std::string_view constructionStephan Bergmann