add contents

This commit is contained in:
Trevor Batley
2025-10-09 15:04:29 +11:00
parent 170362eec1
commit bce7dd054a
2537 changed files with 301282 additions and 0 deletions

View File

@@ -0,0 +1,58 @@
<?php
/**
* Default config settings of the ODT plugin.
*
* @author Aurelien Bompard <aurelien@bompard.org>
* @author LarsDW223
* @package DokuWiki\Conf\Default
*/
// Directory of the templates in the media manager
$conf['tpl_dir'] = 'odt';
// Default ODT template (filename only)
$conf['odt_template'] = '';
$conf['showexportbutton'] = 1;
$conf['showpdfexportbutton'] = 0;
// Parameters for CSS import
$conf['css_usage'] = 'off (plugins only)';
$conf['media_sel'] = 'print';
$conf['css_font_size'] = '16';
$conf['css_template'] = 'dokuwiki';
// Parameters CSS/Styles-Interworking
$conf['apply_fs_to_non_css'] = false;
// Parameters for converting pixel to points
$conf['twips_per_pixel_x'] = '16';
$conf['twips_per_pixel_y'] = '20';
// Page format, orientation and margins in 'cm'
$conf['format'] = 'A4';
$conf['orientation'] = 'portrait';
$conf['margin_top'] = '2';
$conf['margin_right'] = '2';
$conf['margin_bottom'] = '2';
$conf['margin_left'] = '2';
// Disable link creation?
$conf['disable_links'] = 'No';
// TOC settings
$conf['toc_maxlevel'] = '';
$conf['toc_leader_sign'] = '.';
$conf['toc_indents'] = '0, 0.5, 1, 1.5, 2, 2.5, 3, 3.5, 4, 4.5';
$conf['toc_pagebreak'] = 'Yes';
$conf['toc_style'] = 'color:black;';
$conf['index_in_browser'] = 'hide';
// Outline settings
$conf['outline_list_style'] = 'Normal';
// List-Label-Alignment (ordered lists)
$conf['olist_label_align'] = 'right';
// Conversion options
$conf['convert_to_pdf'] = 'libreoffice --headless --convert-to pdf --outdir %outdir% %sourcefile% 2>&1';

View File

@@ -0,0 +1,54 @@
<?php
/**
* Options for the odt plugin
*
* @author Andreas Gohr <andi@splitbrain.org>
*
* @package DokuWiki\Conf\Metadata
*/
$meta['tpl_dir'] = array('string');
$meta['odt_template'] = array('string');
$meta['showexportbutton'] = array('onoff');
$meta['showpdfexportbutton'] = array('onoff');
$meta['css_usage'] = array('multichoice', '_choices' => array('off (plugins only)', 'basic style import'));
$meta['media_sel'] = array('string');
$meta['css_font_size'] = array('numeric');
$meta['css_template'] = array('dirchoice', '_dir' => DOKU_INC . 'lib/tpl/');
$meta['apply_fs_to_non_css'] = array('onoff');
$meta['twips_per_pixel_x'] = array('numeric');
$meta['twips_per_pixel_y'] = array('numeric');
$meta['format'] = array('multichoice', '_choices' => array('A6', 'A5', 'A4', 'A3',
'B6 (ISO)', 'B5 (ISO)', 'B4 (ISO)',
'Letter', 'Legal', 'Long Bond', 'Tabloid',
'B6 (JIS)', 'B5 (JIS)', 'B4 (JIS)',
'16 Kai', '32 Kai', 'Big 32 Kai',
'DL Envelope',
'C6 Envelope', 'C6/5 Envelope', 'C5 Envelope', 'C4 Envelope',
'#6 3/4 Envelope', '#7 3/4 (Monarch) Envelope',
'#9 Envelope', '#10 Envelope', '#11 Envelope', '#12 Envelope',
'Japanese Postcard'));
$meta['orientation'] = array('multichoice', '_choices' => array('portrait', 'landscape'));
$meta['margin_top'] = array('string', '_pattern' => '/^\d+(\.\d+)?$/');
$meta['margin_right'] = array('string', '_pattern' => '/^\d+(\.\d+)?$/');
$meta['margin_bottom'] = array('string', '_pattern' => '/^\d+(\.\d+)?$/');
$meta['margin_left'] = array('string', '_pattern' => '/^\d+(\.\d+)?$/');
$meta['disable_links'] = array('multichoice', '_choices' => array('No', 'Yes'));
$meta['toc_maxlevel'] = array('numeric');
$meta['toc_leader_sign'] = array('string');
$meta['toc_indents'] = array('string');
$meta['toc_pagebreak'] = array('multichoice', '_choices' => array('Yes', 'No'));
$meta['toc_style'] = array('string');
$meta['index_in_browser'] = array('multichoice', '_choices' => array('hide', 'display placeholder'));
$meta['outline_list_style'] = array('multichoice', '_choices' => array('Normal', 'Numbers'));
$meta['olist_label_align'] = array('multichoice', '_choices' => array('left', 'center', 'right'));
$meta['convert_to_pdf'] = array('string');