hametuha/indesign-tagged-text

InDesign 文本转换器。

1.1.1 2023-10-01 17:01 UTC

This package is auto-updated.

Last update: 2024-08-30 01:34:19 UTC


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。