Skip to content

prefix option is ignored since latest FoLiA-hocr changes #52

Open

Description

@proycon

when running: FoLiA-hocr --prefix "FH-" -O ./ -t 1 "OllevierGeets-5.hocr"

I get an output file: OllevierGeets-5.tif.folia.xml instead of FH-OllevierGeets-5.tif.folia.xml as before. This breaks the current PICCL pipeline. Prefix was introduced in LanguageMachines/PICCL@ebd16ff for LanguageMachines/PICCL#30 .

Activity

  1. self-assigned this
    on Dec 12, 2020
  2. kosloot commented on Dec 12, 2020

    @kosloot
    Contributor

    Hmm, yes. It's not a bug, but a changed feature: :)
    the prefix is only added to the document id's. (to avoid invalid NC-names) No longer to the output filenames.
    The latter is in fact pointless.
    But this might indeed break scripts.

    Maybe it is better to stick to the old behavior.
    The same applies to some other modules.

  3. proycon commented on Dec 12, 2020

    @proycon
    MemberAuthor

    ok, no problem, that sounds good, I'll simply adapt the pipeline then.

  4. proycon commented on Dec 12, 2020

    @proycon
    MemberAuthor

    Wait, I think we're both going in different direction aren't we? I just saw some commits where you reinstated the old naming.

  5. kosloot commented on Dec 12, 2020

    @kosloot
    Contributor

    indeeed :)

  6. kosloot commented on Dec 12, 2020

    @kosloot
    Contributor

    @proycon I still think adding prefixes to output files is not the best solution. As it may come as a surprise for users.
    One advantage might be that is directly shows which tool created the file.

    But it is maybe better to avoid this. But then clearly for ALL tools.
    We might agree on changing this in a next (major) release. But it is not an urgent task I think.
    Agreed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions