Commit 8929cf19 authored by 神楽坂玲奈's avatar 神楽坂玲奈

fix

parent 6e6e77f0
...@@ -30,7 +30,7 @@ module MSEConstants ...@@ -30,7 +30,7 @@ module MSEConstants
FileConfigName = "Chinese-Simplified" FileConfigName = "Chinese-Simplified"
PathImage = "Images" PathImage = "Images"
Head = "mse version: 0.3.8\ngame: yugioh\nstylesheet: standard\nset info:\n\tlanguage: %s\n\tedition: \n\tno corner: yes\tST mark is text: yes\n\tpendulum image is small: yes\n\thide gamecode: yes\n" Head = "mse version: 0.3.8\ngame: yugioh\nstylesheet: standard\nset info:\n\tlanguage: %s\n\tedition: \n\tno corner: yes\n\tST mark is text: yes\n\tpendulum image is small: yes\n\thide gamecode: yes\n"
End = "version control:\n\ttype: none\napprentice code: " End = "version control:\n\ttype: none\napprentice code: "
Width = 319 Width = 319
......
...@@ -68,7 +68,10 @@ module MSETranslator ...@@ -68,7 +68,10 @@ module MSETranslator
end end
def reline(word) def reline(word)
word.delete "\r\n" word = word.delete "\r"
word = word.squeeze "\n"
word = word.gsub "。\n", "。"
word
end end
def generate_text(key, word) def generate_text(key, word)
......
...@@ -3,5 +3,4 @@ ...@@ -3,5 +3,4 @@
echo "machine github.com login ${GITHUB_USERNAME} password ${GITHUB_PASSWORD}" > ~/.netrc echo "machine github.com login ${GITHUB_USERNAME} password ${GITHUB_PASSWORD}" > ~/.netrc
chmod 600 ~/.netrc chmod 600 ~/.netrc
Xvfb -screen 0 1x0x24 & xvfb-run --server-args="-screen 0 1x0x24" ruby Server.rb
ruby Server.rb
...@@ -49,6 +49,6 @@ ja-JP: ...@@ -49,6 +49,6 @@ ja-JP:
- "幻神獣族" - "幻神獣族"
- "創造神族" - "創造神族"
- "幻竜族" - "幻竜族"
pendulum_effect_head: !ruby/regexp /【Pスケール:青(.*)/赤(.*)】/ pendulum_effect_head: !ruby/regexp /【Pスケール:青(.*)/赤(.*)】(\n)?/
monster_effect_head: !ruby/regexp /【モンスター効果】/ monster_effect_head: !ruby/regexp /(\n)?【モンスター効果】\n/
mse_language: jp mse_language: jp
...@@ -49,6 +49,6 @@ zh-CN: ...@@ -49,6 +49,6 @@ zh-CN:
- "幻兽神族" - "幻兽神族"
- "创世神族" - "创世神族"
- "幻龙族" - "幻龙族"
pendulum_effect_head: !ruby/regexp /←\\d 【灵摆】 \\d→/ pendulum_effect_head: !ruby/regexp /←\d+ 【灵摆】 \d+→\n?/
monster_effect_head: !ruby/regexp /【怪兽效果】|【怪兽简介】|【怪兽描述】/ monster_effect_head: !ruby/regexp /\n(?:【怪兽效果】|【怪兽简介】|【怪兽描述】)\n/
mse_language: cn mse_language: cn
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment