Skip to content

Words in labels of dot and GraphML output are being merged #81

@mweidling

Description

@mweidling

Dear CollateX team,

for my collation I use a tokenized JSON input as described in the documentation. A very simplified version of it looks like this:

{"witnesses":
[
    {
        "id": "file_1",
        "tokens": [
            {
                "t": "Different",
                "id": "asdf1"
            },
            {
                "t": "beginning.",
                "id": "asdf2"
            }
        ]
    },
    {
        "id": "file_2",
        "tokens": [
            {
                "t": "An",
                "id": "asdfb1"
            },
            {
                "t": "example",
                "id": "asdfb2"
            },
            {
                "t": "text",
                "id": "asdfb3"
            }
        ]
    },
    {
        "id": "file_3",
        "tokens": [
            {
                "t": "Example",
                "id": "asdfbc2"
            },
            {
                "t": "text",
                "id": "asdfbc3"
            }
        ]
    }
]
}

When using CollateX to create a dot or a GraphML file based on this input, the labels lack white spaces between the tokens as can be seen in the following SVG:

example

I would have expected the words to be separated. AFAICT this issue doesn't occur for plain text or untokenized JSON input, though. Would it be possible to fix it?

Many thanks in advance!
Best,
Michelle

Metadata

Metadata

Assignees

No one assigned

    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