Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _core/lib/edit.pl
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ sub textRuleArea {
      <code>:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|説明文2行目</code> 項目名を記入しないか、半角スペースで埋めると上と結合します。<br>
折り畳み:行頭に<code>[>]項目名</code>:以降のテキストがすべて折り畳みになります。<br>
     項目名を省略すると、自動的に「詳細」になります。<br>
     <code>&gt;</code>の代わりに<code>↓</code><code>V</code><code>v</code><code>V</code><code>v</code>のいずれかの文字をもちいると、デフォルトで展開状態となります(例: <code>[v]項目名</code>)。<br>
     <code>&gt;</code>の代わりに<code>V</code><code>v</code><code>V</code><code>v</code>のいずれかの文字をもちいると、デフォルトで展開状態となります(例: <code>[v]項目名</code>)。<br>
折り畳み終了:行頭に<code>[---]</code>:(ハイフンは3つ以上任意)<br>
       省略すると、以後のテキストが全て折りたたまれます。<br>
コメントアウト:行頭に<code>//</code>:記述した行を非表示にします。
Expand Down
16 changes: 10 additions & 6 deletions _core/lib/subroutine.pl
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,10 @@ sub unescapeTags {
$text =~ s/(\[[常準主補宣]\])+/&textToIcon($&);/egi;
$text =~ s/「((?:[○◯〇△>▶〆☆≫»□☐☑🗨]|&gt;&gt;)+)/"「".&textToIcon($1);/egi;
}

$text =~ s|\[[⤴↑]\]|<i class="s-icon uplift">⤴</i>|g;
$text =~ s|\[[⤵↓]\]|<i class="s-icon calm">⤵</i>|g;
$text =~ s|\[♡\]|<i class="s-icon heart">♡</i>|g;
}


Expand Down Expand Up @@ -542,12 +546,12 @@ sub unescapeTagsLines {
$text =~ s/^RIGHT:/<\/p><p class="right">/gim;

my $d_count = 0;
$d_count += ($text =~ s/^\[(&gt;|[vVv])\]\*\*\*\*(.*?)$/"<\/p><details @{[$1 eq '&gt;' ? '' : 'open']}><summary class=\"header4\">$2<\/summary><div class=\"detail-body\"><p>"/gime);
$d_count += ($text =~ s/^\[(&gt;|[vVv])\]\*\*\*(.*?)$/"<\/p><details @{[$1 eq '&gt;' ? '' : 'open']}><summary class=\"header3\">$2<\/summary><div class=\"detail-body\"><p>"/gime);
$d_count += ($text =~ s/^\[(&gt;|[vVv])\]\*\*(.*?)$/"<\/p><details @{[$1 eq '&gt;' ? '' : 'open']}><summary class=\"header2\">$2<\/summary><div class=\"detail-body\"><p>"/gime);
$d_count += ($text =~ s/^\[(&gt;|[vVv])\]\*(.*?)$/"<\/p><details @{[$1 eq '&gt;' ? '' : 'open']}><summary class=\"header1\">$2<\/summary><div class=\"detail-bod\"><p>"/gime);
$d_count += ($text =~ s/^\[(&gt;|[vVv])\](.+?)$/"<\/p><details @{[$1 eq '&gt;' ? '' : 'open']}><summary>$2<\/summary><div class=\"detail-body\"><p>"/gime);
$d_count += ($text =~ s/^\[(&gt;|[vVv])\]$/"<\/p><details @{[$1 eq '&gt;' ? '' : 'open']}><summary>詳細<\/summary><div class=\"detail-body\"><p>"/gime);
$d_count += ($text =~ s/^\[(&gt;|[vVv])\]\*\*\*\*(.*?)$/"<\/p><details @{[$1 eq '&gt;' ? '' : 'open']}><summary class=\"header4\">$2<\/summary><div class=\"detail-body\"><p>"/gime);
$d_count += ($text =~ s/^\[(&gt;|[vVv])\]\*\*\*(.*?)$/"<\/p><details @{[$1 eq '&gt;' ? '' : 'open']}><summary class=\"header3\">$2<\/summary><div class=\"detail-body\"><p>"/gime);
$d_count += ($text =~ s/^\[(&gt;|[vVv])\]\*\*(.*?)$/"<\/p><details @{[$1 eq '&gt;' ? '' : 'open']}><summary class=\"header2\">$2<\/summary><div class=\"detail-body\"><p>"/gime);
$d_count += ($text =~ s/^\[(&gt;|[vVv])\]\*(.*?)$/"<\/p><details @{[$1 eq '&gt;' ? '' : 'open']}><summary class=\"header1\">$2<\/summary><div class=\"detail-bod\"><p>"/gime);
$d_count += ($text =~ s/^\[(&gt;|[vVv])\](.+?)$/"<\/p><details @{[$1 eq '&gt;' ? '' : 'open']}><summary>$2<\/summary><div class=\"detail-body\"><p>"/gime);
$d_count += ($text =~ s/^\[(&gt;|[vVv])\]$/"<\/p><details @{[$1 eq '&gt;' ? '' : 'open']}><summary>詳細<\/summary><div class=\"detail-body\"><p>"/gime);
$d_count -= ($text =~ s/^\[-{3,}\]\n?$/<\/p><\/div><\/details><p>/gim);

$text =~ s/^-{4,}$/<\/p><hr><p>/gim;
Expand Down
3 changes: 3 additions & 0 deletions _core/lib/sw2/edit-arts.pl
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,9 @@
 流派アイテム :<code>[流]</code>:<img class="i-icon" src="${set::icon_dir}wp_school.png"><br>
 アルフレイム大陸由来の流派アイテム:<code>[ア]</code>:<img class="i-icon" src="${set::icon_dir}wp_school_a.png"><br>
 テラスティア大陸由来の流派アイテム:<code>[テ]</code>:<img class="i-icon" src="${set::icon_dir}wp_school_t.png"><br>
 高揚の楽素:<code>[⤴]</code><code>[↑]</code>:<i class="s-icon uplift">⤴</i><br>
 鎮静の楽素:<code>[⤵]</code><code>[↓]</code>:<i class="s-icon calm">⤵</i><br>
 魅惑の楽素:<code>[♡]</code>:<i class="s-icon heart">♡</i><br>
HTML
}
else {
Expand Down
3 changes: 3 additions & 0 deletions _core/lib/sw2/edit-chara.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1713,6 +1713,9 @@ sub chatPaletteFormOptional {
 主動作型 :<code>[主]</code>:<i class="s-icon major "><span class="raw">[主]</span></i><br>
 補助動作型:<code>[補]</code>:<i class="s-icon minor "><span class="raw">[補]</span></i><br>
 宣言型  :<code>[宣]</code>:<i class="s-icon active "><span class="raw">[宣]</span></i><br>
 高揚の楽素:<code>[⤴]</code><code>[↑]</code>:<i class="s-icon uplift">⤴</i><br>
 鎮静の楽素:<code>[⤵]</code><code>[↓]</code>:<i class="s-icon calm">⤵</i><br>
 魅惑の楽素:<code>[♡]</code>:<i class="s-icon heart">♡</i><br>
HTML
print textRuleArea( $text_rule,'「容姿・経歴・その他メモ」「履歴(自由記入)」「所持品」「収支履歴」' );

Expand Down
3 changes: 3 additions & 0 deletions _core/lib/sw2/edit-item.pl
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,9 @@
 流派アイテム :<code>[流]</code>:<img class="i-icon" src="${set::icon_dir}wp_school.png"><br>
 アルフレイム大陸由来の流派アイテム:<code>[ア]</code>:<img class="i-icon" src="${set::icon_dir}wp_school_a.png"><br>
 テラスティア大陸由来の流派アイテム:<code>[テ]</code>:<img class="i-icon" src="${set::icon_dir}wp_school_t.png"><br>
 高揚の楽素:<code>[⤴]</code><code>[↑]</code>:<i class="s-icon uplift">⤴</i><br>
 鎮静の楽素:<code>[⤵]</code><code>[↓]</code>:<i class="s-icon calm">⤵</i><br>
 魅惑の楽素:<code>[♡]</code>:<i class="s-icon heart">♡</i><br>
HTML
}
else {
Expand Down