Skip to content

Commit

Permalink
optimize numeric regexes (#11)
Browse files Browse the repository at this point in the history
* optimize numeric regexes

* update placeholder translation fix, add comment
  • Loading branch information
GeBo1 authored Sep 10, 2024
1 parent 73ae35b commit 89dcbb2
Showing 1 changed file with 24 additions and 21 deletions.
45 changes: 24 additions & 21 deletions Translation/en/Text/regex.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
sr:"^女性([0-90-9]+)人(/|/)男性([0-90-9]+)人$"=$1 Female / $2 Male
r:"^女性([0-90-9]+)人(/|/)男性([0-90-9]+)人$"=$1 Female / $2 Male
sr:"^『本日の占い』\n~~~積極的に人と関わってみましょう。何か(.+?)ことが(.+?)かもしれません~~~$"=Try to actively engage with people. Something $1 might happen that $2
sr:"^『本日の占い』\n~~~運命の人と出会えるかも。恋人が(.+?)人は(.+?)ナーを大切に~~~$"=You might meet your destined person. If you have a lover, cherish your partner
sr:"^ちょっと(.+)$"=A little $1.
Expand All @@ -10,28 +10,31 @@ sr:"^(.+)目 首の向き$"=$1 Eye orientation
sr:"^会いに(.+)$"=$1 to meet
sr:"^(.+)の運勢$"=$1 fortune
sr:"^すごく(.+)!$"=Very $1!
sr:"^([0-90-9]+)回$"=$1 times
sr:"^告白して(.+)$"=Confess, $1.
sr:"^告白(.+.)側$"=Confessed side
sr:"^一緒に行動(.+)回数$"=Sex together
sr:"^([0-90-9]+)回$"=$1 times
sr:"^([0-90-9]+)人$"=$1 times
sr:"^H(.+)$"=H$
r:"^([11])回$"=$1 time
r:"^([0-90-9]+)回$"=$1 times
r:"^([11])人$"=$1 person
sr:"^([0-90-9]+)人$"=$1 people
sr:"^H(.+)$"=H$1
sr:"^自己記録を更新(.+)!$"=Self-recorded $1!
sr:"^スロット([0-90-9]+)$"=Slot $1
sr:"^([0-90-9]+)の設定$"=Slot Setting $1
sr:"^タイプ([0-90-9]+)$"=Type $1
sr:"^カラー([0-90-9]+)$"=Color $1
sr:"^装飾カラー([0-90-9]+)$"=Decoration color $1
sr:"^([0-90-9]+)の設定$"=Setting $1
sr:"^([0-90-9]+)の設定$"=$1 Settings
sr:"^ペイント([0-90-9]+)$"=Paint $1
sr:"^ペイント([0-90-9]+) カラー$"=Paint $1 Color
sr:"^スロット([0-90-9]+)$"=Slot $1
sr:"^スロット([0-90-9]+)の設定$"=Slot $1 Settings
sr:"^([0-90-9]+月)([0-90-9]+)日$"=$1 $2
sr:"^付け毛([0-90-9]+)$"=Hair $1
sr:"^付け毛([0-90-9]+)(左)$"=Hair $1 (Left)
sr:"^付け毛([0-90-9]+)(右)$"=Hair $1 (Right)
r:"^スロット([0-90-9]+)$"=Slot $1
r:"^([0-90-9]+)の設定$"=Slot Setting $1
r:"^タイプ([0-90-9]+)$"=Type $1
r:"^カラー([0-90-9]+)$"=Color $1
r:"^装飾カラー([0-90-9]+)$"=Decoration color $1
r:"^([0-90-9]+)の設定$"=Setting $1
r:"^([0-90-9]+)の設定$"=$1 Settings
r:"^ペイント([0-90-9]+)$"=Paint $1
r:"^ペイント([0-90-9]+) カラー$"=Paint $1 Color
r:"^スロット([0-90-9]+)$"=Slot $1
r:"^スロット([0-90-9]+)の設定$"=Slot $1 Settings
r:"^([0-90-9]+月)([0-90-9]+)日$"=$1 $2
r:"^付け毛([0-90-9]+)$"=Hair $1
r:"^付け毛([0-90-9]+)(左)$"=Hair $1 (Left)
r:"^付け毛([0-90-9]+)(右)$"=Hair $1 (Right)
sr:"^エンブレム(\w)$"=Emblem $1
sr:"(あいうえおかきくけこ)+"=ETAOIN SHRDLU

// Prevent placeholder text from being sent to the translator.
r:"^(あいうえおかきくけこ)+$"=ETAOIN SHRDLU

0 comments on commit 89dcbb2

Please sign in to comment.