HTMLでルビを振るためのサクラエディタのマクロを設置するディレクトリ

サクラエディタがインストールされているものとします。 次項〔以下〕の黒み部分に[HTMLでルビを振るためのサクラエディタのマクロ]のコードを掲載しました。

[HTMLでルビを振るためのサクラエディタのマクロ]を記述する[拡張子:.mac]の[テキストファイル〔SJIS〕〔CR+LF〕]を以下のディレクトリにつくる。

C:\Users\%username%\AppData\Roaming\sakura

テキストファイルの[改行コード]は[CR+LF]、[文字コード]は[SJIS]にする。 置換内容に日本語があればSJISが必須。 置換内容に日本語がなければUTF8でも大丈夫そう。 しかし[文字コード:SJIS|改行コード:CR+LF]で統一しておいたほうが間違いがない。

HTMLでルビを振るためのサクラエディタのマクロ

S_ReplaceAll('[\r\n]+', '\n', 148);


S_ReplaceAll('^(.*?)\t(.*?)\t(.*?)\t(.*?)$', '<ruby><rb>$1</rb><rt>$2</rt><rb>$3</rb><rt>$4</rt></ruby>', 44);
S_ReplaceAll('^(.*?)\t(.*?)$', '<ruby><rb>$1</rb><rt>$2</rt></ruby>', 44);


S_ReplaceAll('^(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$26</rt><rb>$2</rb><rt>$27</rt><rb>$3</rb><rt>$28</rt><rb>$4</rb><rt>$29</rt><rb>$5</rb><rt>$30</rt><rb>$6</rb><rt>$31</rt><rb>$7</rb><rt>$32</rt><rb>$8</rb><rt>$33</rt><rb>$9</rb><rt>$34</rt><rb>$10</rb><rt>$35</rt><rb>$11</rb><rt>$36</rt><rb>$12</rb><rt>$37</rt><rb>$13</rb><rt>$38</rt><rb>$14</rb><rt>$39</rt><rb>$15</rb><rt>$40</rt><rb>$16</rb><rt>$41</rt><rb>$17</rb><rt>$42</rt><rb>$18</rb><rt>$43</rt><rb>$19</rb><rt>$44</rt><rb>$20</rb><rt>$45</rt><rb>$21</rb><rt>$46</rt><rb>$22</rb><rt>$47</rt><rb>$23</rb><rt>$48</rt><rb>$24</rb><rt>$49</rt><rb>$25</rb><rt>$50</rt></ruby>', 44);
S_ReplaceAll('^(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$25</rt><rb>$2</rb><rt>$26</rt><rb>$3</rb><rt>$27</rt><rb>$4</rb><rt>$28</rt><rb>$5</rb><rt>$29</rt><rb>$6</rb><rt>$30</rt><rb>$7</rb><rt>$31</rt><rb>$8</rb><rt>$32</rt><rb>$9</rb><rt>$33</rt><rb>$10</rb><rt>$34</rt><rb>$11</rb><rt>$35</rt><rb>$12</rb><rt>$36</rt><rb>$13</rb><rt>$37</rt><rb>$14</rb><rt>$38</rt><rb>$15</rb><rt>$39</rt><rb>$16</rb><rt>$40</rt><rb>$17</rb><rt>$41</rt><rb>$18</rb><rt>$42</rt><rb>$19</rb><rt>$43</rt><rb>$20</rb><rt>$44</rt><rb>$21</rb><rt>$45</rt><rb>$22</rb><rt>$46</rt><rb>$23</rb><rt>$47</rt><rb>$24</rb><rt>$48</rt></ruby>', 44);
S_ReplaceAll('^(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$24</rt><rb>$2</rb><rt>$25</rt><rb>$3</rb><rt>$26</rt><rb>$4</rb><rt>$27</rt><rb>$5</rb><rt>$28</rt><rb>$6</rb><rt>$29</rt><rb>$7</rb><rt>$30</rt><rb>$8</rb><rt>$31</rt><rb>$9</rb><rt>$32</rt><rb>$10</rb><rt>$33</rt><rb>$11</rb><rt>$34</rt><rb>$12</rb><rt>$35</rt><rb>$13</rb><rt>$36</rt><rb>$14</rb><rt>$37</rt><rb>$15</rb><rt>$38</rt><rb>$16</rb><rt>$39</rt><rb>$17</rb><rt>$40</rt><rb>$18</rb><rt>$41</rt><rb>$19</rb><rt>$42</rt><rb>$20</rb><rt>$43</rt><rb>$21</rb><rt>$44</rt><rb>$22</rb><rt>$45</rt><rb>$23</rb><rt>$46</rt></ruby>', 44);
S_ReplaceAll('^(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$23</rt><rb>$2</rb><rt>$24</rt><rb>$3</rb><rt>$25</rt><rb>$4</rb><rt>$26</rt><rb>$5</rb><rt>$27</rt><rb>$6</rb><rt>$28</rt><rb>$7</rb><rt>$29</rt><rb>$8</rb><rt>$30</rt><rb>$9</rb><rt>$31</rt><rb>$10</rb><rt>$32</rt><rb>$11</rb><rt>$33</rt><rb>$12</rb><rt>$34</rt><rb>$13</rb><rt>$35</rt><rb>$14</rb><rt>$36</rt><rb>$15</rb><rt>$37</rt><rb>$16</rb><rt>$38</rt><rb>$17</rb><rt>$39</rt><rb>$18</rb><rt>$40</rt><rb>$19</rb><rt>$41</rt><rb>$20</rb><rt>$42</rt><rb>$21</rb><rt>$43</rt><rb>$22</rb><rt>$44</rt></ruby>', 44);
S_ReplaceAll('^(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$22</rt><rb>$2</rb><rt>$23</rt><rb>$3</rb><rt>$24</rt><rb>$4</rb><rt>$25</rt><rb>$5</rb><rt>$26</rt><rb>$6</rb><rt>$27</rt><rb>$7</rb><rt>$28</rt><rb>$8</rb><rt>$29</rt><rb>$9</rb><rt>$30</rt><rb>$10</rb><rt>$31</rt><rb>$11</rb><rt>$32</rt><rb>$12</rb><rt>$33</rt><rb>$13</rb><rt>$34</rt><rb>$14</rb><rt>$35</rt><rb>$15</rb><rt>$36</rt><rb>$16</rb><rt>$37</rt><rb>$17</rb><rt>$38</rt><rb>$18</rb><rt>$39</rt><rb>$19</rb><rt>$40</rt><rb>$20</rb><rt>$41</rt><rb>$21</rb><rt>$42</rt></ruby>', 44);
S_ReplaceAll('^(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$21</rt><rb>$2</rb><rt>$22</rt><rb>$3</rb><rt>$23</rt><rb>$4</rb><rt>$24</rt><rb>$5</rb><rt>$25</rt><rb>$6</rb><rt>$26</rt><rb>$7</rb><rt>$27</rt><rb>$8</rb><rt>$28</rt><rb>$9</rb><rt>$29</rt><rb>$10</rb><rt>$30</rt><rb>$11</rb><rt>$31</rt><rb>$12</rb><rt>$32</rt><rb>$13</rb><rt>$33</rt><rb>$14</rb><rt>$34</rt><rb>$15</rb><rt>$35</rt><rb>$16</rb><rt>$36</rt><rb>$17</rb><rt>$37</rt><rb>$18</rb><rt>$38</rt><rb>$19</rb><rt>$39</rt><rb>$20</rb><rt>$40</rt></ruby>', 44);
S_ReplaceAll('^(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$20</rt><rb>$2</rb><rt>$21</rt><rb>$3</rb><rt>$22</rt><rb>$4</rb><rt>$23</rt><rb>$5</rb><rt>$24</rt><rb>$6</rb><rt>$25</rt><rb>$7</rb><rt>$26</rt><rb>$8</rb><rt>$27</rt><rb>$9</rb><rt>$28</rt><rb>$10</rb><rt>$29</rt><rb>$11</rb><rt>$30</rt><rb>$12</rb><rt>$31</rt><rb>$13</rb><rt>$32</rt><rb>$14</rb><rt>$33</rt><rb>$15</rb><rt>$34</rt><rb>$16</rb><rt>$35</rt><rb>$17</rb><rt>$36</rt><rb>$18</rb><rt>$37</rt><rb>$19</rb><rt>$38</rt></ruby>', 44);
S_ReplaceAll('^(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$19</rt><rb>$2</rb><rt>$20</rt><rb>$3</rb><rt>$21</rt><rb>$4</rb><rt>$22</rt><rb>$5</rb><rt>$23</rt><rb>$6</rb><rt>$24</rt><rb>$7</rb><rt>$25</rt><rb>$8</rb><rt>$26</rt><rb>$9</rb><rt>$27</rt><rb>$10</rb><rt>$28</rt><rb>$11</rb><rt>$29</rt><rb>$12</rb><rt>$30</rt><rb>$13</rb><rt>$31</rt><rb>$14</rb><rt>$32</rt><rb>$15</rb><rt>$33</rt><rb>$16</rb><rt>$34</rt><rb>$17</rb><rt>$35</rt><rb>$18</rb><rt>$36</rt></ruby>', 44);
S_ReplaceAll('^(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$18</rt><rb>$2</rb><rt>$19</rt><rb>$3</rb><rt>$20</rt><rb>$4</rb><rt>$21</rt><rb>$5</rb><rt>$22</rt><rb>$6</rb><rt>$23</rt><rb>$7</rb><rt>$24</rt><rb>$8</rb><rt>$25</rt><rb>$9</rb><rt>$26</rt><rb>$10</rb><rt>$27</rt><rb>$11</rb><rt>$28</rt><rb>$12</rb><rt>$29</rt><rb>$13</rb><rt>$30</rt><rb>$14</rb><rt>$31</rt><rb>$15</rb><rt>$32</rt><rb>$16</rb><rt>$33</rt><rb>$17</rb><rt>$34</rt></ruby>', 44);
S_ReplaceAll('^(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$17</rt><rb>$2</rb><rt>$18</rt><rb>$3</rb><rt>$19</rt><rb>$4</rb><rt>$20</rt><rb>$5</rb><rt>$21</rt><rb>$6</rb><rt>$22</rt><rb>$7</rb><rt>$23</rt><rb>$8</rb><rt>$24</rt><rb>$9</rb><rt>$25</rt><rb>$10</rb><rt>$26</rt><rb>$11</rb><rt>$27</rt><rb>$12</rb><rt>$28</rt><rb>$13</rb><rt>$29</rt><rb>$14</rb><rt>$30</rt><rb>$15</rb><rt>$31</rt><rb>$16</rb><rt>$32</rt></ruby>', 44);
S_ReplaceAll('^(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$16</rt><rb>$2</rb><rt>$17</rt><rb>$3</rb><rt>$18</rt><rb>$4</rb><rt>$19</rt><rb>$5</rb><rt>$20</rt><rb>$6</rb><rt>$21</rt><rb>$7</rb><rt>$22</rt><rb>$8</rb><rt>$23</rt><rb>$9</rb><rt>$24</rt><rb>$10</rb><rt>$25</rt><rb>$11</rb><rt>$26</rt><rb>$12</rb><rt>$27</rt><rb>$13</rb><rt>$28</rt><rb>$14</rb><rt>$29</rt><rb>$15</rb><rt>$30</rt></ruby>', 44);
S_ReplaceAll('^(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$15</rt><rb>$2</rb><rt>$16</rt><rb>$3</rb><rt>$17</rt><rb>$4</rb><rt>$18</rt><rb>$5</rb><rt>$19</rt><rb>$6</rb><rt>$20</rt><rb>$7</rb><rt>$21</rt><rb>$8</rb><rt>$22</rt><rb>$9</rb><rt>$23</rt><rb>$10</rb><rt>$24</rt><rb>$11</rb><rt>$25</rt><rb>$12</rb><rt>$26</rt><rb>$13</rb><rt>$27</rt><rb>$14</rb><rt>$28</rt></ruby>', 44);
S_ReplaceAll('^(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$14</rt><rb>$2</rb><rt>$15</rt><rb>$3</rb><rt>$16</rt><rb>$4</rb><rt>$17</rt><rb>$5</rb><rt>$18</rt><rb>$6</rb><rt>$19</rt><rb>$7</rb><rt>$20</rt><rb>$8</rb><rt>$21</rt><rb>$9</rb><rt>$22</rt><rb>$10</rb><rt>$23</rt><rb>$11</rb><rt>$24</rt><rb>$12</rb><rt>$25</rt><rb>$13</rb><rt>$26</rt></ruby>', 44);
S_ReplaceAll('^(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$13</rt><rb>$2</rb><rt>$14</rt><rb>$3</rb><rt>$15</rt><rb>$4</rb><rt>$16</rt><rb>$5</rb><rt>$17</rt><rb>$6</rb><rt>$18</rt><rb>$7</rb><rt>$19</rt><rb>$8</rb><rt>$20</rt><rb>$9</rb><rt>$21</rt><rb>$10</rb><rt>$22</rt><rb>$11</rb><rt>$23</rt><rb>$12</rb><rt>$24</rt></ruby>', 44);
S_ReplaceAll('^(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$12</rt><rb>$2</rb><rt>$13</rt><rb>$3</rb><rt>$14</rt><rb>$4</rb><rt>$15</rt><rb>$5</rb><rt>$16</rt><rb>$6</rb><rt>$17</rt><rb>$7</rb><rt>$18</rt><rb>$8</rb><rt>$19</rt><rb>$9</rb><rt>$20</rt><rb>$10</rb><rt>$21</rt><rb>$11</rb><rt>$22</rt></ruby>', 44);
S_ReplaceAll('^(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$11</rt><rb>$2</rb><rt>$12</rt><rb>$3</rb><rt>$13</rt><rb>$4</rb><rt>$14</rt><rb>$5</rb><rt>$15</rt><rb>$6</rb><rt>$16</rt><rb>$7</rb><rt>$17</rt><rb>$8</rb><rt>$18</rt><rb>$9</rb><rt>$19</rt><rb>$10</rb><rt>$20</rt></ruby>', 44);
S_ReplaceAll('^(.)(.)(.)(.)(.)(.)(.)(.)(.)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$10</rt><rb>$2</rb><rt>$11</rt><rb>$3</rb><rt>$12</rt><rb>$4</rb><rt>$13</rt><rb>$5</rb><rt>$14</rt><rb>$6</rb><rt>$15</rt><rb>$7</rb><rt>$16</rt><rb>$8</rb><rt>$17</rt><rb>$9</rb><rt>$18</rt></ruby>', 44);
S_ReplaceAll('^(.)(.)(.)(.)(.)(.)(.)(.)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$9</rt><rb>$2</rb><rt>$10</rt><rb>$3</rb><rt>$11</rt><rb>$4</rb><rt>$12</rt><rb>$5</rb><rt>$13</rt><rb>$6</rb><rt>$14</rt><rb>$7</rb><rt>$15</rt><rb>$8</rb><rt>$16</rt></ruby>', 44);
S_ReplaceAll('^(.)(.)(.)(.)(.)(.)(.)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$8</rt><rb>$2</rb><rt>$9</rt><rb>$3</rb><rt>$10</rt><rb>$4</rb><rt>$11</rt><rb>$5</rb><rt>$12</rt><rb>$6</rb><rt>$13</rt><rb>$7</rb><rt>$14</rt></ruby>', 44);
S_ReplaceAll('^(.)(.)(.)(.)(.)(.)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$7</rt><rb>$2</rb><rt>$8</rt><rb>$3</rb><rt>$9</rt><rb>$4</rb><rt>$10</rt><rb>$5</rb><rt>$11</rt><rb>$6</rb><rt>$12</rt></ruby>', 44);
S_ReplaceAll('^(.)(.)(.)(.)(.)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$6</rt><rb>$2</rb><rt>$7</rt><rb>$3</rb><rt>$8</rt><rb>$4</rb><rt>$9</rt><rb>$5</rb><rt>$10</rt></ruby>', 44);
S_ReplaceAll('^(.)(.)(.)(.)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$5</rt><rb>$2</rb><rt>$6</rt><rb>$3</rb><rt>$7</rt><rb>$4</rb><rt>$8</rt></ruby>', 44);
S_ReplaceAll('^(.)(.)(.)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$4</rt><rb>$2</rb><rt>$5</rt><rb>$3</rb><rt>$6</rt></ruby>', 44);
S_ReplaceAll('^(.)(.)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$3</rt><rb>$2</rb><rt>$4</rt></ruby>', 44);
S_ReplaceAll('^(.)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$2</rt></ruby>', 44);


S_ReplaceAll('^(.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+)(?: |)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$26</rt></ruby> <ruby><rb>$2</rb><rt>$27</rt></ruby> <ruby><rb>$3</rb><rt>$28</rt></ruby> <ruby><rb>$4</rb><rt>$29</rt></ruby> <ruby><rb>$5</rb><rt>$30</rt></ruby> <ruby><rb>$6</rb><rt>$31</rt></ruby> <ruby><rb>$7</rb><rt>$32</rt></ruby> <ruby><rb>$8</rb><rt>$33</rt></ruby> <ruby><rb>$9</rb><rt>$34</rt></ruby> <ruby><rb>$10</rb><rt>$35</rt></ruby> <ruby><rb>$11</rb><rt>$36</rt></ruby> <ruby><rb>$12</rb><rt>$37</rt></ruby> <ruby><rb>$13</rb><rt>$38</rt></ruby> <ruby><rb>$14</rb><rt>$39</rt></ruby> <ruby><rb>$15</rb><rt>$40</rt></ruby> <ruby><rb>$16</rb><rt>$41</rt></ruby> <ruby><rb>$17</rb><rt>$42</rt></ruby> <ruby><rb>$18</rb><rt>$43</rt></ruby> <ruby><rb>$19</rb><rt>$44</rt></ruby> <ruby><rb>$20</rb><rt>$45</rt></ruby> <ruby><rb>$21</rb><rt>$46</rt></ruby> <ruby><rb>$22</rb><rt>$47</rt></ruby> <ruby><rb>$23</rb><rt>$48</rt></ruby> <ruby><rb>$24</rb><rt>$49</rt></ruby> <ruby><rb>$25</rb><rt>$50</rt></ruby>', 44);
S_ReplaceAll('^(.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+)(?: |)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$25</rt></ruby> <ruby><rb>$2</rb><rt>$26</rt></ruby> <ruby><rb>$3</rb><rt>$27</rt></ruby> <ruby><rb>$4</rb><rt>$28</rt></ruby> <ruby><rb>$5</rb><rt>$29</rt></ruby> <ruby><rb>$6</rb><rt>$30</rt></ruby> <ruby><rb>$7</rb><rt>$31</rt></ruby> <ruby><rb>$8</rb><rt>$32</rt></ruby> <ruby><rb>$9</rb><rt>$33</rt></ruby> <ruby><rb>$10</rb><rt>$34</rt></ruby> <ruby><rb>$11</rb><rt>$35</rt></ruby> <ruby><rb>$12</rb><rt>$36</rt></ruby> <ruby><rb>$13</rb><rt>$37</rt></ruby> <ruby><rb>$14</rb><rt>$38</rt></ruby> <ruby><rb>$15</rb><rt>$39</rt></ruby> <ruby><rb>$16</rb><rt>$40</rt></ruby> <ruby><rb>$17</rb><rt>$41</rt></ruby> <ruby><rb>$18</rb><rt>$42</rt></ruby> <ruby><rb>$19</rb><rt>$43</rt></ruby> <ruby><rb>$20</rb><rt>$44</rt></ruby> <ruby><rb>$21</rb><rt>$45</rt></ruby> <ruby><rb>$22</rb><rt>$46</rt></ruby> <ruby><rb>$23</rb><rt>$47</rt></ruby> <ruby><rb>$24</rb><rt>$48</rt></ruby>', 44);
S_ReplaceAll('^(.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+)(?: |)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$24</rt></ruby> <ruby><rb>$2</rb><rt>$25</rt></ruby> <ruby><rb>$3</rb><rt>$26</rt></ruby> <ruby><rb>$4</rb><rt>$27</rt></ruby> <ruby><rb>$5</rb><rt>$28</rt></ruby> <ruby><rb>$6</rb><rt>$29</rt></ruby> <ruby><rb>$7</rb><rt>$30</rt></ruby> <ruby><rb>$8</rb><rt>$31</rt></ruby> <ruby><rb>$9</rb><rt>$32</rt></ruby> <ruby><rb>$10</rb><rt>$33</rt></ruby> <ruby><rb>$11</rb><rt>$34</rt></ruby> <ruby><rb>$12</rb><rt>$35</rt></ruby> <ruby><rb>$13</rb><rt>$36</rt></ruby> <ruby><rb>$14</rb><rt>$37</rt></ruby> <ruby><rb>$15</rb><rt>$38</rt></ruby> <ruby><rb>$16</rb><rt>$39</rt></ruby> <ruby><rb>$17</rb><rt>$40</rt></ruby> <ruby><rb>$18</rb><rt>$41</rt></ruby> <ruby><rb>$19</rb><rt>$42</rt></ruby> <ruby><rb>$20</rb><rt>$43</rt></ruby> <ruby><rb>$21</rb><rt>$44</rt></ruby> <ruby><rb>$22</rb><rt>$45</rt></ruby> <ruby><rb>$23</rb><rt>$46</rt></ruby>', 44);
S_ReplaceAll('^(.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+)(?: |)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$23</rt></ruby> <ruby><rb>$2</rb><rt>$24</rt></ruby> <ruby><rb>$3</rb><rt>$25</rt></ruby> <ruby><rb>$4</rb><rt>$26</rt></ruby> <ruby><rb>$5</rb><rt>$27</rt></ruby> <ruby><rb>$6</rb><rt>$28</rt></ruby> <ruby><rb>$7</rb><rt>$29</rt></ruby> <ruby><rb>$8</rb><rt>$30</rt></ruby> <ruby><rb>$9</rb><rt>$31</rt></ruby> <ruby><rb>$10</rb><rt>$32</rt></ruby> <ruby><rb>$11</rb><rt>$33</rt></ruby> <ruby><rb>$12</rb><rt>$34</rt></ruby> <ruby><rb>$13</rb><rt>$35</rt></ruby> <ruby><rb>$14</rb><rt>$36</rt></ruby> <ruby><rb>$15</rb><rt>$37</rt></ruby> <ruby><rb>$16</rb><rt>$38</rt></ruby> <ruby><rb>$17</rb><rt>$39</rt></ruby> <ruby><rb>$18</rb><rt>$40</rt></ruby> <ruby><rb>$19</rb><rt>$41</rt></ruby> <ruby><rb>$20</rb><rt>$42</rt></ruby> <ruby><rb>$21</rb><rt>$43</rt></ruby> <ruby><rb>$22</rb><rt>$44</rt></ruby>', 44);
S_ReplaceAll('^(.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+)(?: |)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$22</rt></ruby> <ruby><rb>$2</rb><rt>$23</rt></ruby> <ruby><rb>$3</rb><rt>$24</rt></ruby> <ruby><rb>$4</rb><rt>$25</rt></ruby> <ruby><rb>$5</rb><rt>$26</rt></ruby> <ruby><rb>$6</rb><rt>$27</rt></ruby> <ruby><rb>$7</rb><rt>$28</rt></ruby> <ruby><rb>$8</rb><rt>$29</rt></ruby> <ruby><rb>$9</rb><rt>$30</rt></ruby> <ruby><rb>$10</rb><rt>$31</rt></ruby> <ruby><rb>$11</rb><rt>$32</rt></ruby> <ruby><rb>$12</rb><rt>$33</rt></ruby> <ruby><rb>$13</rb><rt>$34</rt></ruby> <ruby><rb>$14</rb><rt>$35</rt></ruby> <ruby><rb>$15</rb><rt>$36</rt></ruby> <ruby><rb>$16</rb><rt>$37</rt></ruby> <ruby><rb>$17</rb><rt>$38</rt></ruby> <ruby><rb>$18</rb><rt>$39</rt></ruby> <ruby><rb>$19</rb><rt>$40</rt></ruby> <ruby><rb>$20</rb><rt>$41</rt></ruby> <ruby><rb>$21</rb><rt>$42</rt></ruby>', 44);
S_ReplaceAll('^(.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+)(?: |)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$21</rt></ruby> <ruby><rb>$2</rb><rt>$22</rt></ruby> <ruby><rb>$3</rb><rt>$23</rt></ruby> <ruby><rb>$4</rb><rt>$24</rt></ruby> <ruby><rb>$5</rb><rt>$25</rt></ruby> <ruby><rb>$6</rb><rt>$26</rt></ruby> <ruby><rb>$7</rb><rt>$27</rt></ruby> <ruby><rb>$8</rb><rt>$28</rt></ruby> <ruby><rb>$9</rb><rt>$29</rt></ruby> <ruby><rb>$10</rb><rt>$30</rt></ruby> <ruby><rb>$11</rb><rt>$31</rt></ruby> <ruby><rb>$12</rb><rt>$32</rt></ruby> <ruby><rb>$13</rb><rt>$33</rt></ruby> <ruby><rb>$14</rb><rt>$34</rt></ruby> <ruby><rb>$15</rb><rt>$35</rt></ruby> <ruby><rb>$16</rb><rt>$36</rt></ruby> <ruby><rb>$17</rb><rt>$37</rt></ruby> <ruby><rb>$18</rb><rt>$38</rt></ruby> <ruby><rb>$19</rb><rt>$39</rt></ruby> <ruby><rb>$20</rb><rt>$40</rt></ruby>', 44);
S_ReplaceAll('^(.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+)(?: |)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$20</rt></ruby> <ruby><rb>$2</rb><rt>$21</rt></ruby> <ruby><rb>$3</rb><rt>$22</rt></ruby> <ruby><rb>$4</rb><rt>$23</rt></ruby> <ruby><rb>$5</rb><rt>$24</rt></ruby> <ruby><rb>$6</rb><rt>$25</rt></ruby> <ruby><rb>$7</rb><rt>$26</rt></ruby> <ruby><rb>$8</rb><rt>$27</rt></ruby> <ruby><rb>$9</rb><rt>$28</rt></ruby> <ruby><rb>$10</rb><rt>$29</rt></ruby> <ruby><rb>$11</rb><rt>$30</rt></ruby> <ruby><rb>$12</rb><rt>$31</rt></ruby> <ruby><rb>$13</rb><rt>$32</rt></ruby> <ruby><rb>$14</rb><rt>$33</rt></ruby> <ruby><rb>$15</rb><rt>$34</rt></ruby> <ruby><rb>$16</rb><rt>$35</rt></ruby> <ruby><rb>$17</rb><rt>$36</rt></ruby> <ruby><rb>$18</rb><rt>$37</rt></ruby> <ruby><rb>$19</rb><rt>$38</rt></ruby>', 44);
S_ReplaceAll('^(.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+)(?: |)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$19</rt></ruby> <ruby><rb>$2</rb><rt>$20</rt></ruby> <ruby><rb>$3</rb><rt>$21</rt></ruby> <ruby><rb>$4</rb><rt>$22</rt></ruby> <ruby><rb>$5</rb><rt>$23</rt></ruby> <ruby><rb>$6</rb><rt>$24</rt></ruby> <ruby><rb>$7</rb><rt>$25</rt></ruby> <ruby><rb>$8</rb><rt>$26</rt></ruby> <ruby><rb>$9</rb><rt>$27</rt></ruby> <ruby><rb>$10</rb><rt>$28</rt></ruby> <ruby><rb>$11</rb><rt>$29</rt></ruby> <ruby><rb>$12</rb><rt>$30</rt></ruby> <ruby><rb>$13</rb><rt>$31</rt></ruby> <ruby><rb>$14</rb><rt>$32</rt></ruby> <ruby><rb>$15</rb><rt>$33</rt></ruby> <ruby><rb>$16</rb><rt>$34</rt></ruby> <ruby><rb>$17</rb><rt>$35</rt></ruby> <ruby><rb>$18</rb><rt>$36</rt></ruby>', 44);
S_ReplaceAll('^(.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+)(?: |)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$18</rt></ruby> <ruby><rb>$2</rb><rt>$19</rt></ruby> <ruby><rb>$3</rb><rt>$20</rt></ruby> <ruby><rb>$4</rb><rt>$21</rt></ruby> <ruby><rb>$5</rb><rt>$22</rt></ruby> <ruby><rb>$6</rb><rt>$23</rt></ruby> <ruby><rb>$7</rb><rt>$24</rt></ruby> <ruby><rb>$8</rb><rt>$25</rt></ruby> <ruby><rb>$9</rb><rt>$26</rt></ruby> <ruby><rb>$10</rb><rt>$27</rt></ruby> <ruby><rb>$11</rb><rt>$28</rt></ruby> <ruby><rb>$12</rb><rt>$29</rt></ruby> <ruby><rb>$13</rb><rt>$30</rt></ruby> <ruby><rb>$14</rb><rt>$31</rt></ruby> <ruby><rb>$15</rb><rt>$32</rt></ruby> <ruby><rb>$16</rb><rt>$33</rt></ruby> <ruby><rb>$17</rb><rt>$34</rt></ruby>', 44);
S_ReplaceAll('^(.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+)(?: |)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$17</rt></ruby> <ruby><rb>$2</rb><rt>$18</rt></ruby> <ruby><rb>$3</rb><rt>$19</rt></ruby> <ruby><rb>$4</rb><rt>$20</rt></ruby> <ruby><rb>$5</rb><rt>$21</rt></ruby> <ruby><rb>$6</rb><rt>$22</rt></ruby> <ruby><rb>$7</rb><rt>$23</rt></ruby> <ruby><rb>$8</rb><rt>$24</rt></ruby> <ruby><rb>$9</rb><rt>$25</rt></ruby> <ruby><rb>$10</rb><rt>$26</rt></ruby> <ruby><rb>$11</rb><rt>$27</rt></ruby> <ruby><rb>$12</rb><rt>$28</rt></ruby> <ruby><rb>$13</rb><rt>$29</rt></ruby> <ruby><rb>$14</rb><rt>$30</rt></ruby> <ruby><rb>$15</rb><rt>$31</rt></ruby> <ruby><rb>$16</rb><rt>$32</rt></ruby>', 44);
S_ReplaceAll('^(.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+)(?: |)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$16</rt></ruby> <ruby><rb>$2</rb><rt>$17</rt></ruby> <ruby><rb>$3</rb><rt>$18</rt></ruby> <ruby><rb>$4</rb><rt>$19</rt></ruby> <ruby><rb>$5</rb><rt>$20</rt></ruby> <ruby><rb>$6</rb><rt>$21</rt></ruby> <ruby><rb>$7</rb><rt>$22</rt></ruby> <ruby><rb>$8</rb><rt>$23</rt></ruby> <ruby><rb>$9</rb><rt>$24</rt></ruby> <ruby><rb>$10</rb><rt>$25</rt></ruby> <ruby><rb>$11</rb><rt>$26</rt></ruby> <ruby><rb>$12</rb><rt>$27</rt></ruby> <ruby><rb>$13</rb><rt>$28</rt></ruby> <ruby><rb>$14</rb><rt>$29</rt></ruby> <ruby><rb>$15</rb><rt>$30</rt></ruby>', 44);
S_ReplaceAll('^(.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+)(?: |)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$15</rt></ruby> <ruby><rb>$2</rb><rt>$16</rt></ruby> <ruby><rb>$3</rb><rt>$17</rt></ruby> <ruby><rb>$4</rb><rt>$18</rt></ruby> <ruby><rb>$5</rb><rt>$19</rt></ruby> <ruby><rb>$6</rb><rt>$20</rt></ruby> <ruby><rb>$7</rb><rt>$21</rt></ruby> <ruby><rb>$8</rb><rt>$22</rt></ruby> <ruby><rb>$9</rb><rt>$23</rt></ruby> <ruby><rb>$10</rb><rt>$24</rt></ruby> <ruby><rb>$11</rb><rt>$25</rt></ruby> <ruby><rb>$12</rb><rt>$26</rt></ruby> <ruby><rb>$13</rb><rt>$27</rt></ruby> <ruby><rb>$14</rb><rt>$28</rt></ruby>', 44);
S_ReplaceAll('^(.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+)(?: |)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$14</rt></ruby> <ruby><rb>$2</rb><rt>$15</rt></ruby> <ruby><rb>$3</rb><rt>$16</rt></ruby> <ruby><rb>$4</rb><rt>$17</rt></ruby> <ruby><rb>$5</rb><rt>$18</rt></ruby> <ruby><rb>$6</rb><rt>$19</rt></ruby> <ruby><rb>$7</rb><rt>$20</rt></ruby> <ruby><rb>$8</rb><rt>$21</rt></ruby> <ruby><rb>$9</rb><rt>$22</rt></ruby> <ruby><rb>$10</rb><rt>$23</rt></ruby> <ruby><rb>$11</rb><rt>$24</rt></ruby> <ruby><rb>$12</rb><rt>$25</rt></ruby> <ruby><rb>$13</rb><rt>$26</rt></ruby>', 44);
S_ReplaceAll('^(.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+)(?: |)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$13</rt></ruby> <ruby><rb>$2</rb><rt>$14</rt></ruby> <ruby><rb>$3</rb><rt>$15</rt></ruby> <ruby><rb>$4</rb><rt>$16</rt></ruby> <ruby><rb>$5</rb><rt>$17</rt></ruby> <ruby><rb>$6</rb><rt>$18</rt></ruby> <ruby><rb>$7</rb><rt>$19</rt></ruby> <ruby><rb>$8</rb><rt>$20</rt></ruby> <ruby><rb>$9</rb><rt>$21</rt></ruby> <ruby><rb>$10</rb><rt>$22</rt></ruby> <ruby><rb>$11</rb><rt>$23</rt></ruby> <ruby><rb>$12</rb><rt>$24</rt></ruby>', 44);
S_ReplaceAll('^(.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+)(?: |)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$12</rt></ruby> <ruby><rb>$2</rb><rt>$13</rt></ruby> <ruby><rb>$3</rb><rt>$14</rt></ruby> <ruby><rb>$4</rb><rt>$15</rt></ruby> <ruby><rb>$5</rb><rt>$16</rt></ruby> <ruby><rb>$6</rb><rt>$17</rt></ruby> <ruby><rb>$7</rb><rt>$18</rt></ruby> <ruby><rb>$8</rb><rt>$19</rt></ruby> <ruby><rb>$9</rb><rt>$20</rt></ruby> <ruby><rb>$10</rb><rt>$21</rt></ruby> <ruby><rb>$11</rb><rt>$22</rt></ruby>', 44);
S_ReplaceAll('^(.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+)(?: |)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$11</rt></ruby> <ruby><rb>$2</rb><rt>$12</rt></ruby> <ruby><rb>$3</rb><rt>$13</rt></ruby> <ruby><rb>$4</rb><rt>$14</rt></ruby> <ruby><rb>$5</rb><rt>$15</rt></ruby> <ruby><rb>$6</rb><rt>$16</rt></ruby> <ruby><rb>$7</rb><rt>$17</rt></ruby> <ruby><rb>$8</rb><rt>$18</rt></ruby> <ruby><rb>$9</rb><rt>$19</rt></ruby> <ruby><rb>$10</rb><rt>$20</rt></ruby>', 44);
S_ReplaceAll('^(.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+)(?: |)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$10</rt></ruby> <ruby><rb>$2</rb><rt>$11</rt></ruby> <ruby><rb>$3</rb><rt>$12</rt></ruby> <ruby><rb>$4</rb><rt>$13</rt></ruby> <ruby><rb>$5</rb><rt>$14</rt></ruby> <ruby><rb>$6</rb><rt>$15</rt></ruby> <ruby><rb>$7</rb><rt>$16</rt></ruby> <ruby><rb>$8</rb><rt>$17</rt></ruby> <ruby><rb>$9</rb><rt>$18</rt></ruby>', 44);
S_ReplaceAll('^(.+) (.+) (.+) (.+) (.+) (.+) (.+) (.+)(?: |)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$9</rt></ruby> <ruby><rb>$2</rb><rt>$10</rt></ruby> <ruby><rb>$3</rb><rt>$11</rt></ruby> <ruby><rb>$4</rb><rt>$12</rt></ruby> <ruby><rb>$5</rb><rt>$13</rt></ruby> <ruby><rb>$6</rb><rt>$14</rt></ruby> <ruby><rb>$7</rb><rt>$15</rt></ruby> <ruby><rb>$8</rb><rt>$16</rt></ruby>', 44);
S_ReplaceAll('^(.+) (.+) (.+) (.+) (.+) (.+) (.+)(?: |)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$8</rt></ruby> <ruby><rb>$2</rb><rt>$9</rt></ruby> <ruby><rb>$3</rb><rt>$10</rt></ruby> <ruby><rb>$4</rb><rt>$11</rt></ruby> <ruby><rb>$5</rb><rt>$12</rt></ruby> <ruby><rb>$6</rb><rt>$13</rt></ruby> <ruby><rb>$7</rb><rt>$14</rt></ruby>', 44);
S_ReplaceAll('^(.+) (.+) (.+) (.+) (.+) (.+)(?: |)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$7</rt></ruby> <ruby><rb>$2</rb><rt>$8</rt></ruby> <ruby><rb>$3</rb><rt>$9</rt></ruby> <ruby><rb>$4</rb><rt>$10</rt></ruby> <ruby><rb>$5</rb><rt>$11</rt></ruby> <ruby><rb>$6</rb><rt>$12</rt></ruby>', 44);
S_ReplaceAll('^(.+) (.+) (.+) (.+) (.+)(?: |)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$6</rt></ruby> <ruby><rb>$2</rb><rt>$7</rt></ruby> <ruby><rb>$3</rb><rt>$8</rt></ruby> <ruby><rb>$4</rb><rt>$9</rt></ruby> <ruby><rb>$5</rb><rt>$10</rt></ruby>', 44);
S_ReplaceAll('^(.+) (.+) (.+) (.+)(?: |)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$5</rt></ruby> <ruby><rb>$2</rb><rt>$6</rt></ruby> <ruby><rb>$3</rb><rt>$7</rt></ruby> <ruby><rb>$4</rb><rt>$8</rt></ruby>', 44);
S_ReplaceAll('^(.+) (.+) (.+)(?: |)(?:\,|\.)(.*?)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$4</rt></ruby> <ruby><rb>$2</rb><rt>$5</rt></ruby> <ruby><rb>$3</rb><rt>$6</rt></ruby>', 44);
S_ReplaceAll('^(.+) (.+)(?: |)(?:\,|\.)(.*?)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$3</rt></ruby> <ruby><rb>$2</rb><rt>$4</rt></ruby>', 44);
S_ReplaceAll('^(.+)(?: |)(?:\,|\.)(.*?)$', '<ruby><rb>$1</rb><rt>$2</rt></ruby>', 44);


S_ReplaceAll('^[\r\n]+', '', 44); 

S_ReplaceAll('[\n]+', '\r\n', 44); 

S_ReDraw(0);

S_SelectAll(0);
S_Copy(0);

置換元のデータの作り方

宇宙戦艦,う,ちゅう,せん,かん
Earth Wind and Fire,アース,ウインド,アンド,ファイヤー

置換操作|サクラエディタの操作

  • 置換元のデータをサクラエディタに貼り付ける。
  • [ツール(T)]→[名前を指定してマクロを実行(E)]→[該当するマクロを左クリック]
  • 作業完了

置換後のデータ

ちゅうせんかん

Earthアース Windウインド andアンド Fireファイヤー

ちゅうせんかん Earthアース Windウインド andアンド Fireファイヤー