Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-images-generator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
ygopro-images-generator
Commits
07773dae
Commit
07773dae
authored
Jan 08, 2025
by
wind2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add escape
parent
27be0c68
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
MSETranslator.rb
MSETranslator.rb
+9
-2
No files found.
MSETranslator.rb
View file @
07773dae
...
...
@@ -27,7 +27,7 @@ module MSETranslator
def
write_monster
(
file
,
card
)
file
.
write
"
\n
#{
MSEConstants
::
MSETags
::
TagCard
}
:
\n
"
file
.
write
self
.
generate_line
MSEConstants
::
MSETags
::
TagCardType
,
YGOCoreJudgers
.
get_cardtype_str
(
card
)
file
.
write
self
.
generate_line
MSEConstants
::
MSETags
::
TagName
,
YGOCoreJudgers
.
get_name
(
card
)
file
.
write
self
.
generate_line
MSEConstants
::
MSETags
::
TagName
,
self
.
escape
(
YGOCoreJudgers
.
get_name
(
card
)
)
file
.
write
self
.
generate_line
MSEConstants
::
MSETags
::
TagAttribute
,
YGOCoreJudgers
.
get_attribute_str
(
card
)
file
.
write
self
.
generate_line
MSEConstants
::
MSETags
::
TagLevel
,
YGOCoreJudgers
.
get_level_str
(
card
)
file
.
write
self
.
generate_line
MSEConstants
::
MSETags
::
TagImage
,
YGOCoreJudgers
.
get_image_str
(
card
)
...
...
@@ -60,7 +60,7 @@ module MSETranslator
def
write_spell
(
file
,
card
)
file
.
write
"
\n
#{
MSEConstants
::
MSETags
::
TagCard
}
:
\n
"
file
.
write
self
.
generate_line
MSEConstants
::
MSETags
::
TagCardType
,
YGOCoreJudgers
.
get_cardtype_str
(
card
)
file
.
write
self
.
generate_line
MSEConstants
::
MSETags
::
TagName
,
YGOCoreJudgers
.
get_name
(
card
)
file
.
write
self
.
generate_line
MSEConstants
::
MSETags
::
TagName
,
self
.
escape
(
YGOCoreJudgers
.
get_name
(
card
)
)
file
.
write
self
.
generate_line
MSEConstants
::
MSETags
::
TagAttribute
,
YGOCoreJudgers
.
get_attribute_str
(
card
)
file
.
write
self
.
generate_line
MSEConstants
::
MSETags
::
TagLevel
,
YGOCoreJudgers
.
get_level_str
(
card
)
file
.
write
self
.
generate_line
MSEConstants
::
MSETags
::
TagImage
,
YGOCoreJudgers
.
get_image_str
(
card
)
...
...
@@ -83,6 +83,13 @@ module MSETranslator
word
=
word
.
squeeze
"
\n
"
word
=
word
.
gsub
"。
\n
"
,
"。"
word
=
word
.
gsub
".
\n
"
,
"."
word
=
self
.
escape
word
word
end
def
escape
(
word
)
word
=
word
.
gsub
"<"
,
"
\\
<"
word
=
word
.
gsub
">"
,
"
\\
>"
word
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment