hametuha / indesign-tagged-text
InDesign 文本转换器。
1.1.1
2023-10-01 17:01 UTC
Requires
- php: ^7|^8
- ext-mbstring: *
Requires (Dev)
- phpunit/phpunit: ^6|^7
- squizlabs/php_codesniffer: ^3.0
- wp-coding-standards/wpcs: ^2.0
README
文本转换器,从 UTF-8 文本文件创建 InDesign 的标记文本。Markdown 即时可用。
安装
使用 composer 安装。
composer require hametuha/indesign-tagged-text
使用方法
集成
// Load composer.
require_once __DIR__ . '/vendor/autoload.php';
// Make Instance.
$converter = new Hametuha\InDesignTaggedText( 'Mac', 'UNICODE' );
// Load contents from string.
// 2nd argument is markdown or not.
$converter->convert( 'path/to/manuscript.md', true );
// Export as a string.
// If argument is set "true",
// the content will be converted to new text encoding(e.g. UTF-16Be)
$tagged_text = $converter->export( true );
从命令行界面(CLI)使用
进行中(W.I.P.)
支持的样式
进行中(W.I.P.)
许可
MIT。