Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bibtex reader chokes at @preamble and @string #2051

Closed
Omikhleia opened this issue Jun 9, 2024 · 0 comments · Fixed by #2048
Closed

Bibtex reader chokes at @preamble and @string #2051

Omikhleia opened this issue Jun 9, 2024 · 0 comments · Fixed by #2048
Assignees
Labels
bug Software bug issue modules:packages Issue relates to core or 3rd party packages
Milestone

Comments

@Omikhleia
Copy link
Member

Omikhleia commented Jun 9, 2024

In (legacy) bibtex files, @preamble and @string are special entry types

  • @preamble can contain (La)TeX instructions...
  • @string allows defining abbreviations for use in other entries

Our reader errors if one or the other is present.
We should at best:

  • Skip @preamble
  • Manage @string or gracefully degrade if we don't want to support it.
@Omikhleia Omikhleia added bug Software bug issue modules:packages Issue relates to core or 3rd party packages labels Jun 9, 2024
@Omikhleia Omikhleia self-assigned this Jun 9, 2024
Omikhleia added a commit to Omikhleia/resilient-types that referenced this issue Jun 9, 2024
Skip @Preamble as done for @comment.
The @Preamble command is used to provide TeX or LaTeX macros that
are processed by BibTeX program, but it is unspecified what to do
with these when converting to a format that does not use TeX.

See sile-typesetter#2051
Omikhleia added a commit to Omikhleia/resilient-types that referenced this issue Jun 9, 2024
Support "@string" blocks in a bibtex file, and the use of the
thus defined strings in other entry fields.
Supports concatenation with the "#" operator.

As part of the syntax clean-up, all content between entries
is now skipped (it doesn't need to start with a percent sign,
everything that is not an entry is a comment.

See sile-typesetter#2051
Omikhleia added a commit to Omikhleia/resilient-types that referenced this issue Jun 9, 2024
Skip `@preamble` as done for `@comment`.
The `@preamble` command is used to provide TeX or LaTeX macros that
are processed by BibTeX program, but it is unspecified what to do
with these when converting to a format that does not use TeX.

See sile-typesetter#2051
Omikhleia added a commit to Omikhleia/resilient-types that referenced this issue Jun 9, 2024
Support `@string` blocks in a bibtex file, and the use of the
thus defined strings in other entry fields.
Supports concatenation with the "#" operator.

As part of the syntax clean-up, all content between entries
is now skipped (it doesn't need to start with a percent sign,
everything that is not an entry is a comment.

See sile-typesetter#2051
Omikhleia added a commit to Omikhleia/resilient-types that referenced this issue Jun 11, 2024
Skip `@preamble` as done for `@comment`.
The `@preamble` command is used to provide TeX or LaTeX macros that
are processed by BibTeX program, but it is unspecified what to do
with these when converting to a format that does not use TeX.

See sile-typesetter#2051
Omikhleia added a commit to Omikhleia/resilient-types that referenced this issue Jun 11, 2024
Support `@string` blocks in a bibtex file, and the use of the
thus defined strings in other entry fields.
Supports concatenation with the "#" operator.

As part of the syntax clean-up, all content between entries
is now skipped (it doesn't need to start with a percent sign,
everything that is not an entry is a comment.

See sile-typesetter#2051
Omikhleia added a commit to Omikhleia/resilient-types that referenced this issue Jun 11, 2024
Skip `@preamble` as done for `@comment`.
The `@preamble` command is used to provide TeX or LaTeX macros that
are processed by BibTeX program, but it is unspecified what to do
with these when converting to a format that does not use TeX.

See sile-typesetter#2051
Omikhleia added a commit to Omikhleia/resilient-types that referenced this issue Jun 11, 2024
Support `@string` blocks in a bibtex file, and the use of the
thus defined strings in other entry fields.
Supports concatenation with the "#" operator.

As part of the syntax clean-up, all content between entries
is now skipped (it doesn't need to start with a percent sign,
everything that is not an entry is a comment.

See sile-typesetter#2051
Omikhleia added a commit to Omikhleia/resilient-types that referenced this issue Jun 15, 2024
Skip `@preamble` as done for `@comment`.
The `@preamble` command is used to provide TeX or LaTeX macros that
are processed by BibTeX program, but it is unspecified what to do
with these when converting to a format that does not use TeX.

See sile-typesetter#2051
Omikhleia added a commit to Omikhleia/resilient-types that referenced this issue Jun 15, 2024
Support `@string` blocks in a bibtex file, and the use of the
thus defined strings in other entry fields.
Supports concatenation with the "#" operator.

As part of the syntax clean-up, all content between entries
is now skipped (it doesn't need to start with a percent sign,
everything that is not an entry is a comment.

See sile-typesetter#2051
Omikhleia added a commit to Omikhleia/resilient-types that referenced this issue Jun 15, 2024
Skip `@preamble` as done for `@comment`.
The `@preamble` command is used to provide TeX or LaTeX macros that
are processed by BibTeX program, but it is unspecified what to do
with these when converting to a format that does not use TeX.

See sile-typesetter#2051
Omikhleia added a commit to Omikhleia/resilient-types that referenced this issue Jun 15, 2024
Support `@string` blocks in a bibtex file, and the use of the
thus defined strings in other entry fields.
Supports concatenation with the "#" operator.

As part of the syntax clean-up, all content between entries
is now skipped (it doesn't need to start with a percent sign,
everything that is not an entry is a comment.

See sile-typesetter#2051
@alerque alerque added this to the v0.15.4 milestone Jun 23, 2024
alerque pushed a commit to Omikhleia/resilient-types that referenced this issue Jun 23, 2024
Skip `@preamble` as done for `@comment`.
The `@preamble` command is used to provide TeX or LaTeX macros that
are processed by BibTeX program, but it is unspecified what to do
with these when converting to a format that does not use TeX.

See sile-typesetter#2051
alerque pushed a commit to Omikhleia/resilient-types that referenced this issue Jun 23, 2024
Support `@string` blocks in a bibtex file, and the use of the
thus defined strings in other entry fields.
Supports concatenation with the "#" operator.

As part of the syntax clean-up, all content between entries
is now skipped (it doesn't need to start with a percent sign,
everything that is not an entry is a comment.

See sile-typesetter#2051
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Software bug issue modules:packages Issue relates to core or 3rd party packages
Projects
Development

Successfully merging a pull request may close this issue.

2 participants