https://bugs.kde.org/show_bug.cgi?id=517428

            Bug ID: 517428
           Summary: Source code does not comply with language.xsd
    Classification: Frameworks and Libraries
           Product: frameworks-syntax-highlighting
      Version First unspecified
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: syntax
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

SUMMARY

The file "language.xsd" defines the expected structure of highlighting
definition files. It allows three elements below <language>: <highlighting>,
<general> and <spellchecking>. Below <spellchecking> a <encodings> element is
allowed and below that a list of <encoding> elements. Each <encoding> element
can have the attributes "string", "char" and "ignored".

The source code that reads the highlighting definition files (definition.cpp)
does not comply with the XSD. It expects <spellchecking> within <general> and
not on the same level with it. The intermediate element <encodings> is not
expected and from <encoding> only the attributes "string" and "char" are
evaluated. The attribute "ignored" is, well, ignored.

STEPS TO REPRODUCE

Compare the code in definition.cpp with the content of "language.xsd".

OBSERVED RESULT

Encodings defined in language/spellchecking/encodings/encoding are ignored.

EXPECTED RESULT

Either the code respects the XML structure defined in language.xsd or that XSD
is corrected to reflect the actual implementation. In the latter case the
existing highlighting definitions that comply with the XSD and use the
<spellchecking> element, should be adopted accordingly.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION

I was really happy when I found a feature in Kate that my beloved Notepad++
from Windows did not provide: Ignoring certain characters inside words in the
spellchecker. The greater my disappointment when the according data in my
highlighting definition was ignored. There is worse than that, but I find it
weird to have an exact formal XML specification and then implementing something
that contradicts it.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to