Skip to content

Commit

Permalink
Merge pull request #10473 from keymanapp/fix/developer/10469-use-keyb…
Browse files Browse the repository at this point in the history
…oard3-tag

fix(developer): use keyboard3 tag rather than DTD to identify LDML keyboard xml files 🌱
  • Loading branch information
mcdurdin authored Jan 26, 2024
2 parents fa91bdc + 7b0406d commit 95d3261
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function TLDMLKeyboardProjectTemplate.GetKeyboardFilename: string;
const
TemplateXML: string =
'<?xml version="1.0" encoding="UTF-8"?>'#13#10+
'<!DOCTYPE keyboard3 SYSTEM "ldmlKeyboard3.dtd">'#13#10+
// We won't inject the DOCTYPE because of pathing challenges, CLDR-15505: '<!DOCTYPE keyboard3 SYSTEM "ldmlKeyboard3.dtd">'#13#10+
'<keyboard3 />'#13#10;

const
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class function TxmlLdmlProjectFile.IsFileTypeSupported(const Filename: string):
ss := TStringStream.Create('', TEncoding.UTF8);
try
ss.LoadFromFile(Filename);
Result := ss.DataString.IndexOf('ldmlKeyboard3.dtd') > 0;
Result := ss.DataString.IndexOf('<keyboard3') > 0;
finally
ss.Free;
end;
Expand Down

0 comments on commit 95d3261

Please sign in to comment.