Giter VIP home page Giter VIP logo

Comments (1)

rbeezer avatar rbeezer commented on July 23, 2024

From Norbert Markus on the liblouis mailing list, a pointer in the right direction


I have looked into the liblouisutdml code to find the cause of this problem.

In the file readconfig.c
the function:

static int
parseLine (lbu_FileInfo * nested)

line 389:

      while (((ch = *curchar++) <= 32 || ch == '=') && ch != 0);

I assume the above line is causing your problem. After a line has been read from the config, the first word on the line up to the first trailing space or equals sign is taken as the key fro the setting, then the following spaces and equals signs are ignored (this is done in the code snippet above) and the next word is taken as the value.
Unfortunately, it means you cannot specify the equals sign itself as the value for the setting because it is ignored. Putting a space and a fake second value after it does not help: the equals signs get ignored in any case.
This behavior makes sense in the context that the same algorithm is reused to parse config settings on the command line where an equals sign is the delimiter between the config key and its value.

from liblouisutdml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.