#10 support for comments in .dic files

closed
nobody
None
5
2007-04-05
2007-03-20
No

in .aff files comments are no problem. In .dic files comments would probably be a performance killer but I think it would be okay, to only allow comments at the start of the .dic file. How about ignoring everything at the top of the .dic file up to the first line starting with a numeric which is now the first file defining the number of dictionary entries. An example .dic file could be:

--snip--
this is the xyz dictionary file for hunspell 1.1.6

copyright is copyleft

author: Foo Faa

2
dictionayentry1/FLAGS
dictionayentry2/FLAGS
--snap--

Discussion

  • Németh László

    Logged In: YES
    user_id=726595
    Originator: NO

    There needs to be word count in the first line for back compatibility.
    MySpell and old Hunspell versions support comments in the first line after the word count
    and any dic entry. But to ignore comments from ngram suggestions, use tabulators
    in comments (comments will be (optional) morphological descriptions, not dictionary words).

    --- dic example ----
    2 # This is the xyz dictionary file for hunspell 1.1.6
    # copyright is copyleft
    # author: Foo Faa
    dictionayentry1/FLAGS
    dictionayentry2/FLAGS

    Thanks for the request. Laci

     
  • Németh László

    • status: open --> pending
     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539
    Originator: NO

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending --> closed