summaryrefslogtreecommitdiffstatshomepage
path: root/hash/pc98_cd.xml
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2020-04-16 05:05:16 +1000
committer Vas Crabb <vas@vastheman.com>2020-04-16 14:04:06 +1000
commit1a5c013c330fd1a6b3d21d9bbbaf512539ae4503 (patch)
treeb3ff6b9f247bdb2f721346a6adae7157d0a66c90 /hash/pc98_cd.xml
parent94ddd2d427700c5802e00adda0d3373941d06bba (diff)
(nw) softlist_dev.cpp: validate ROM labels
The free-for-all on labels in software lists is not working. There's no consistency, labels are getting excessively long, people are starting to use non-ASCII characters in labels making it harder for others to type them when manipulating files on the command line, and there's too much markup being put in labels. The length limit is 127 characters, same as for labels in MAME itself. This should be long enough to be descriptive. Remember that the Win32 path limit is 260 characters, and many applications and frameworks have issues with longer paths, including Windows Explorer and the .NET framework. Labels are used as filenames, so concessions need to be made for this. I have not abbreviated excessively long labels myself - they're currently causing 135 validity errors. Someone else can fix them. Printable ASCII characters are allowed, with a few exceptions. The exceptions are limited to characters most likely to cause issues for interactive shells and scripts: * ! - csh event substitution (very difficult to escape properly) * $ - sh varibale expansion * % - csh job control, cmd variable expansion * / - UNIX directory separator * : - sh path separator, Windows drive qualifier * \ - sh escape, Windows directory separator Most of the labels that had to be edited were using ! for markup, or using ! and % for titles in labels. Strangely, titles in labels are often forced to lower case, despite this never being enforced for software lists. There are also various other edits to titles used for labels, such as moving articles to the end (with or without a comma), or replacing spaces with underscores. As I already said, there's no consistency at all. There is far too much markup in labels. They're even being used for notes in some cases (e.g. at least one case where a dumper's name is in the label). The XML schema supports metadata - use it. For example, you can use part_id for an unrestricted display name for a software part. You can also use XML comments for notes. And while on the topic of metadata, vgmplay.xml is putting the same thing in the part_id as well as the label. The part_id should have the actual title, not the title mangled to make it more suitable for use as a filename. Addressing this would be a lot of work, given how large the file is. For now, empty data areas in software lists cause a verbose message rather than a validation warning. There are thousands of software lists using empty data areas to indicate the size/width of cartridge RAM/EEPROM/etc.
Diffstat (limited to 'hash/pc98_cd.xml')
-rw-r--r--hash/pc98_cd.xml14
1 files changed, 7 insertions, 7 deletions
diff --git a/hash/pc98_cd.xml b/hash/pc98_cd.xml
index e1d5fc1382f..d4c047a2391 100644
--- a/hash/pc98_cd.xml
+++ b/hash/pc98_cd.xml
@@ -2182,7 +2182,7 @@ license:CC0
<info name="release" value="199607xx" />
<part name="cdrom" interface="cdrom">
<diskarea name="cdrom">
- <disk name="hanafuda de pon!" sha1="e6c9322b57da82c08ac7a7d91e50771214820806" />
+ <disk name="hanafuda de pon" sha1="e6c9322b57da82c08ac7a7d91e50771214820806" />
</diskarea>
</part>
</software>
@@ -2202,7 +2202,7 @@ license:CC0
<info name="release" value="199503xx" />
<part name="cdrom" interface="cdrom">
<diskarea name="cdrom">
- <disk name="heart de ron!!" sha1="1c95cf153e055068b71f8fd6fffe760d1ddd2ac0" />
+ <disk name="heart de ron" sha1="1c95cf153e055068b71f8fd6fffe760d1ddd2ac0" />
</diskarea>
</part>
</software>
@@ -2754,7 +2754,7 @@ license:CC0
<info name="release" value="199404xx" />
<part name="cdrom" interface="cdrom">
<diskarea name="cdrom">
- <disk name="mahjong de pon!" sha1="58c4ae95a830294baa1a448c328d53c1d0a6002b" />
+ <disk name="mahjong de pon" sha1="58c4ae95a830294baa1a448c328d53c1d0a6002b" />
</diskarea>
</part>
</software>
@@ -3007,7 +3007,7 @@ license:CC0
<info name="release" value="19960920" />
<part name="cdrom" interface="cdrom">
<diskarea name="cdrom">
- <disk name="oh! kitsune-sama" sha1="344195412be77a1953d6a2a79db5c8a9e8a56b41" />
+ <disk name="oh kitsune-sama" sha1="344195412be77a1953d6a2a79db5c8a9e8a56b41" />
</diskarea>
</part>
</software>
@@ -3499,7 +3499,7 @@ license:CC0
<info name="release" value="199506xx" />
<part name="cdrom" interface="cdrom">
<diskarea name="cdrom">
- <disk name="ring out!!" sha1="2b50d05b278824e36a1b2fdf500a5ec4c9daeb3b" />
+ <disk name="ring out" sha1="2b50d05b278824e36a1b2fdf500a5ec4c9daeb3b" />
</diskarea>
</part>
</software>
@@ -4147,7 +4147,7 @@ license:CC0
<info name="release" value="199501xx" />
<part name="cdrom" interface="cdrom">
<diskarea name="cdrom">
- <disk name="takamizawa kyosuke - nekketsu!! kyouiku kenshuu" sha1="ce13831f3094f9ab53c392480ece497c9b3c7997" />
+ <disk name="takamizawa kyosuke - nekketsu kyouiku kenshuu" sha1="ce13831f3094f9ab53c392480ece497c9b3c7997" />
</diskarea>
</part>
</software>
@@ -4238,7 +4238,7 @@ license:CC0
<info name="usage" value="Requires the original manual to pass the protection check"/>
<part name="cdrom" interface="cdrom">
<diskarea name="cdrom">
- <disk name="tokyo 2 - kaitaku imin boshuuchuu! (japan)" sha1="009ad8945385a51fd2e0bd1960a872297052396b" />
+ <disk name="tokyo 2 - kaitaku imin boshuuchuu (japan)" sha1="009ad8945385a51fd2e0bd1960a872297052396b" />
</diskarea>
</part>
</software>