Skip to content

Commit

Permalink
<SJIS-MAC>を<UNICODE-MAC>に変更する
Browse files Browse the repository at this point in the history
  • Loading branch information
inao committed Feb 27, 2020
1 parent 4180301 commit 762ccc7
Show file tree
Hide file tree
Showing 15 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion lib/Text/Md2Inao/Builder/InDesign.pm
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ sub after_filter {
$out = $self->SUPER::after_filter($c, $out);
chomp $out;
return <<EOF;
<SJIS-MAC>
<UNICODE-MAC>
$out
EOF
}
Expand Down
4 changes: 2 additions & 2 deletions t/06_filter.t
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ use Text::Md2Inao::Builder::InDesign;
EOF

is $p->parse($in), <<EOF;
<SJIS-MAC>
<UNICODE-MAC>
<ParaStyle:本文><CharStyle:赤字>★<CharStyle:>テスト<CharStyle:赤字>★<CharStyle:>
EOF
}
Expand All @@ -48,7 +48,7 @@ EOF
EOF

is $p->parse($in), <<EOF;
<SJIS-MAC>
<UNICODE-MAC>
<ParaStyle:本文><CharStyle:赤字>★<CharStyle:>test<CharStyle:赤字>★<CharStyle:>
EOF
}
Expand Down
2 changes: 1 addition & 1 deletion t/21_indesign_builder.t
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ hogehoge **piyo** hogehoge
EOF

is $out, <<EOF;
<SJIS-MAC>
<UNICODE-MAC>
<ParaStyle:大見出し>blah blah
<ParaStyle:本文>hogehoge <CharStyle:太字>piyo<CharStyle:>hogehoge
EOF
Expand Down
2 changes: 1 addition & 1 deletion t/30_indesign_basic_syntax.t
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ sub md2inao {
builder => Text::Md2Inao::Builder::InDesign->new,
});
my $out = $p->parse($_);
$out =~ s/^<SJIS-MAC>\n//; # テストに毎回書くのめんどくさいので
$out =~ s/^<UNICODE-MAC>\n//; # テストに毎回書くのめんどくさいので
return $out;
}

Expand Down
2 changes: 1 addition & 1 deletion t/31_indesign_metadata.t
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Twitter: @naoya_ito
Hello, World
--- expected
<SJIS-MAC>
<UNICODE-MAC>
<ParaStyle:章番号・連載回数>章番号:第3章
<ParaStyle:章番号・連載回数>連載回数:第5回
<ParaStyle:タイトル>タイトル:Markdown to Inao
Expand Down
2 changes: 1 addition & 1 deletion t/32_indesign_free_replacer.t
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ sub md2inao {
builder => Text::Md2Inao::Builder::InDesign->new,
});
my $out = $p->parse($_);
$out =~ s/^<SJIS-MAC>\n//; # テストに毎回書くのめんどくさいので
$out =~ s/^<UNICODE-MAC>\n//; # テストに毎回書くのめんどくさいので
return $out;
}

Expand Down
8 changes: 4 additions & 4 deletions t/33_indesign_escape_html.t
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ __END__
--- in md2inao
This is not html &lt;code&gt;
--- expected
<SJIS-MAC>
<UNICODE-MAC>
<ParaStyle:本文>This is not html <005C><code<005C>>
=== inline command
--- in md2inao
This is not html `<code>`
--- expected
<SJIS-MAC>
<UNICODE-MAC>
<ParaStyle:本文>This is not html <CharStyle:コード(文字単位)><005C><code<005C>><CharStyle:>
=== list context
Expand All @@ -46,7 +46,7 @@ This is not html `<code>`
Hello, World;
--- expected
<SJIS-MAC>
<UNICODE-MAC>
<ParaStyle:半行アキ>
<ParaStyle:コード><005C><html<005C>>
<ParaStyle:コード><005C><body<005C>><005C></body<005C>>
Expand All @@ -57,5 +57,5 @@ Hello, World;
--- in md2inao
<span class="unknown">test</span>
--- expected
<SJIS-MAC>
<UNICODE-MAC>
<ParaStyle:本文><005C><span class="unknown"<005C>>test<005C></span<005C>>
6 changes: 3 additions & 3 deletions t/34_blank_style.t
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ __END__
* Hello
* World
--- expected
<SJIS-MAC>
<UNICODE-MAC>
<ParaStyle:本文>
<ParaStyle:箇条書き>・Hello
<ParaStyle:箇条書き>・World
Expand All @@ -32,7 +32,7 @@ __END__
--- in md2inao
use strict;
--- expected
<SJIS-MAC>
<UNICODE-MAC>
<ParaStyle:本文>
<ParaStyle:コード>use strict;
Expand All @@ -41,7 +41,7 @@ __END__
1. Hello
2. World
--- expected
<SJIS-MAC>
<UNICODE-MAC>
<ParaStyle:本文>
<ParaStyle:箇条書き><CharStyle:丸文字><2776><CharStyle:>Hello
<ParaStyle:箇条書き><CharStyle:丸文字><2777><CharStyle:>World
2 changes: 1 addition & 1 deletion t/35_keyboard_font.t
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ run_is in => 'expected';

sub _md2id {
my $out = md2id($_);
$out =~ s/<SJIS-MAC>\n//;
$out =~ s/<UNICODE-MAC>\n//;
return $out;
}

Expand Down
6 changes: 3 additions & 3 deletions t/40_use_math.t
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The following lines are note inline maths.
$ 2
$ 3
--- expected
<SJIS-MAC>
<UNICODE-MAC>
<ParaStyle:本文>Inline math text $x_1$ and $\Delta x_2$ should be preserved as-is.The following lines are note inline maths.
<ParaStyle:半行アキ>
<ParaStyle:コード>$ 1
Expand Down Expand Up @@ -54,7 +54,7 @@ $$
Here is normal markdown text.
--- expected
<SJIS-MAC>
<UNICODE-MAC>
<ParaStyle:本文>Display math text like following should be kept as-is.
<ParaStyle:本文>$$
\begin{split}
Expand Down Expand Up @@ -124,7 +124,7 @@ This place is not italic.
$$ x_2, x_3 $$
--- expected
<SJIS-MAC>
<UNICODE-MAC>
<ParaStyle:本文>Math texts are converted as Markdown without specifying UseMath.
<ParaStyle:本文>$x<CharStyle:イタリック>1$This place is italic$x<CharStyle:>2$This place is not italic.
<ParaStyle:本文>$$ x_1 $$
Expand Down
2 changes: 1 addition & 1 deletion t/99_rt_blockquote_id.t
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ __END__
>
> です。
--- expected
<SJIS-MAC>
<UNICODE-MAC>
<ParaStyle:引用>引用
<ParaStyle:引用>です。
6 changes: 3 additions & 3 deletions t/99_rt_list_id.t
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ __END__
* Hello
* World
--- expected
<SJIS-MAC>
<UNICODE-MAC>
<ParaStyle:半行アキ>
<ParaStyle:箇条書き>・Hello
<ParaStyle:箇条書き2階層目>・World
Expand All @@ -23,7 +23,7 @@ __END__
* Good Bye
* World
--- expected
<SJIS-MAC>
<UNICODE-MAC>
<ParaStyle:半行アキ>
<ParaStyle:箇条書き>・Hello
<ParaStyle:箇条書き2階層目>・World
Expand All @@ -38,7 +38,7 @@ __END__
* Good Bye
* World
--- expected
<SJIS-MAC>
<UNICODE-MAC>
<ParaStyle:半行アキ>
<ParaStyle:箇条書き>・Hello
<ParaStyle:箇条書き2階層目>・World
Expand Down
4 changes: 2 additions & 2 deletions t/99_rt_list_in_column.t
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ __END__
</dl>
</div>
--- expected
<SJIS-MAC>
<UNICODE-MAC>
<ParaStyle:コラムタイトル>コラム:タイトル
<ParaStyle:コラム本文>あいうえお。
<ParaStyle:コラム半行アキ>
Expand All @@ -44,7 +44,7 @@ __END__
<dd>def</dd>
</dl>
--- expected
<SJIS-MAC>
<UNICODE-MAC>
<ParaStyle:本文>あいうえお。
<ParaStyle:半行アキ>
<ParaStyle:箇条書き>・abc
Expand Down
4 changes: 2 additions & 2 deletions t/99_rt_ruby_in_footnote.t
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ __END__
--- in md2id
○○います(注:あいう<span class='monoruby'>辟易(へき えき)</span>えお)。
--- expected
<SJIS-MAC>
<UNICODE-MAC>
<ParaStyle:本文>○○います<cstyle:脚注上付き><fnStart:><pstyle:脚注>あいう<cr:1><crstr:へき えき><cmojir:1>辟易<cr:><crstr:><cmojir:>えお<fnEnd:><cstyle:>。

=== groupruby
--- in md2id
○○います(注:あいう<span class='groupruby'>欠伸(あくび)</span>えお)。
--- expected
<SJIS-MAC>
<UNICODE-MAC>
<ParaStyle:本文>○○います<cstyle:脚注上付き><fnStart:><pstyle:脚注>あいう<cr:1><crstr:あくび><cmojir:0>欠伸<cr:><crstr:><cmojir:>えお<fnEnd:><cstyle:>。
4 changes: 2 additions & 2 deletions t/99_rt_table_indent.t
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ __END__
</tr>
</table>
--- expected
<SJIS-MAC>
<UNICODE-MAC>
<ParaStyle:キャプション>表1 キャプション
<ParaStyle:表見出し行>列の説明1 列の説明2

Expand All @@ -28,6 +28,6 @@ __END__
</tr>
</table>
--- expected
<SJIS-MAC>
<UNICODE-MAC>
<ParaStyle:キャプション>表1 キャプション
<ParaStyle:表見出し行>列の説明1 列の説明2

0 comments on commit 762ccc7

Please sign in to comment.