Can anyone help on the format I should use for this file in the Subtitle Edit plugin
I have tried
<Word American="dumb" British="stupid" />
as suggested by google but then I get the error message
There are multiple root elements. Line3, position2.
+ Reply to Thread
Results 1 to 3 of 3
-
-
That error is from the XML file itself, not from your Word line.
<Word American="dumb" British="stupid" /> is fine as an entry, but an XML document can only have one root element. If the file is just several <Word ... /> lines (or a declaration plus a bare <Word>), parsers report "multiple root elements."
Wrap every entry in a single parent. For Subtitle Edit's American to British word list that looks like:
<?xml version="1.0" encoding="utf-8"?>
<Words>
<Word American="dumb" British="stupid" />
<Word American="color" British="colour" />
</Words>
Save as UTF-8 (not UTF-16) with a .xml extension, then point the plugin/dictionary path at that file again.
Also check:
- No second <?xml ...?> later in the file
- No leftover HTML or markdown around the tags
- Attribute quotes are straight " not curly quotes from a word processor
After it loads, run a tiny test subtitle with "color"/"dumb" and confirm Tools / Change spelling / American to British picks up your custom pair. If SE still rejects the file, paste the first ~10 lines and which exact menu you load the XML from. -
Thanks a lot Fred. It works. I hope whoever else in the future has this problem can find this thread.
Similar Threads
-
Whisper in Subtitle Edit cannot see the audio file
By loninappleton in forum SubtitleReplies: 11Last Post: 31st May 2025, 00:22 -
Subtitle Edit - delete video and subtitle file after processing?
By svcds in forum SubtitleReplies: 0Last Post: 4th Jan 2024, 05:45 -
Subtitle edit - How to put 'A with a dash on top' in subtitle edit?
By SSEN in forum SubtitleReplies: 5Last Post: 21st Sep 2023, 20:57 -
How to hide codes like <br/> />, etc. in subtitle file in subtitle edit?
By Pusat in forum SubtitleReplies: 0Last Post: 10th May 2023, 01:34 -
Is it possible to edit subtitle without extracting it from mkv file?
By iKron in forum Newbie / General discussionsReplies: 1Last Post: 2nd May 2022, 14:49


Quote