Author Topic: BibTex routines  (Read 1920 times)

HSE

  • Member
  • *****
  • Posts: 1745
  • <AMD>< 7-32>
BibTex routines
« on: January 13, 2021, 10:50:43 AM »
Hi all!

Following idea presented in XML or JSON? found interesting perhaps to use directly a BibTex file (.bib) for full bibliography list.

Until now only lecture and builded in 32bit (in theory must build in 64bit but not tested yet).

Some crazy macros  :eusa_dance: and a couple of Finite State Machines  :biggrin:

Regards. HSE.

PD. 2. Corrected a dual (32-64) feature.
      3. Leaks elimination and moderator's corrections for 64 bit  :thumbsup: 
      4. Biterider modifications to support WIDE_STRING and other corrections. Ignoring @comment{} and entries not specified in https://www.bibtex.com/.
      5. Corrections and extentions.
      6. Very big field contents. Solved LaTEX escapes  but not LaTEX macros.
      7. Solved concatenation. Processing @string and non standard entries.
« Last Edit: February 10, 2021, 11:11:39 AM by HSE »

Biterider

  • Moderator
  • Member
  • *****
  • Posts: 730
  • ObjAsm Developer
    • ObjAsm
Re: BibTex routines
« Reply #1 on: January 13, 2021, 08:02:52 PM »
Hi HSE
I checked the code which is really well written.  :thumbsup:
The exe works fine. When I find some time, I'll compile it for 64 bit and check the results against 32 bit.

Since I don't know much about the BibTex format, if the app does what is expected, is atm beyond my knowledge. :rolleyes:

Regards, Biterider

HSE

  • Member
  • *****
  • Posts: 1745
  • <AMD>< 7-32>
Re: BibTex routines
« Reply #2 on: January 14, 2021, 12:31:03 AM »
Hi Biterider!

Quote from: Biterider link=topic=9104.msg100025#msg100025 date=16105285/72
When I find some time, I'll compile it for 64 bit and check the results against 32 bit.
Fantastic, because look like my 64bit installation is outdated (but cheking in 32 bit machine I don't found a possible reason   :rolleyes:).

Since I don't know much about the BibTex format, if the app does what is expected, is atm beyond my knowledge. :rolleyes:
Here I used the www.BibTex.com general use format, which is very simple. Full features (mostly to be used in Latex) are presented in www.BibTex.org and requiere more processes.

Thanks. HSE.

HSE

  • Member
  • *****
  • Posts: 1745
  • <AMD>< 7-32>
Re: BibTex routines
« Reply #3 on: January 15, 2021, 06:29:25 AM »
because look like my 64bit installation is outdated (but cheking in 32 bit machine I don't found a possible reason   :rolleyes:).
The posible reason: in x64 there was ObjAsm C.1.0  :biggrin:
Updated to ObjAsm C.1.1, still there is some problem.
In x86 I have development version ObjAsm C.1.2. (GitHub) :eusa_boohoo:
« Last Edit: January 15, 2021, 07:40:23 AM by HSE »

Biterider

  • Moderator
  • Member
  • *****
  • Posts: 730
  • ObjAsm Developer
    • ObjAsm
Re: BibTex routines
« Reply #4 on: January 15, 2021, 07:39:54 AM »
Hi HSE
It compiles right out of the box and outputs exactly the same result  :thumbsup:


Biterider

HSE

  • Member
  • *****
  • Posts: 1745
  • <AMD>< 7-32>
Re: BibTex routines
« Reply #5 on: January 16, 2021, 03:09:21 AM »
Hi Biterider!!

Confirmed. Something wrong in C.1.1 . Cloning C.1.2 everything look Ok.

Now I remember, you corrected DbgStr  :biggrin: :biggrin:

Regards., HSE.

HSE

  • Member
  • *****
  • Posts: 1745
  • <AMD>< 7-32>
Re: BibTex routines
« Reply #6 on: January 30, 2021, 12:43:33 AM »
Hi all !!

   Updated in first post:
  • Corrected first finite state machine
  • Simplification to ANSI because standard implementation don't support UTF-8.    
  • Added extended type "unknownfile"
  • Added extended fields "location", "store", "path", "fname" and "extention" .

Regards, HSE.

HSE

  • Member
  • *****
  • Posts: 1745
  • <AMD>< 7-32>
Re: BibTex routines
« Reply #7 on: February 02, 2021, 11:58:13 AM »
Hi all!!
  • @Preamble,@String and @Comments are included now (just like strings).
  • Complete modification of second Finite State Machine to allow very big field contents. I was thinking in "note" and "annote", but there is a test with hundreds of authors in one field, then all fields contents are now unlimited.
  • Solved LaTEX escapes frecuents in some examples, but not macros (or what name have the "#" thing)  yet .
   Code in first post.

Regards, HSE

Biterider

  • Moderator
  • Member
  • *****
  • Posts: 730
  • ObjAsm Developer
    • ObjAsm
Re: BibTex routines
« Reply #8 on: February 03, 2021, 06:09:24 AM »
Hi HSE
BibTex6 works fine here  :thumbsup:


Biterider

HSE

  • Member
  • *****
  • Posts: 1745
  • <AMD>< 7-32>
Re: BibTex routines
« Reply #9 on: February 10, 2021, 10:49:43 AM »
Hi All!

  • Solved concanation input and output
  • Processing @string entries to obtain a correct output of text variables. That requiere a 4th FSM
  • Processing non standard entries, in that case all fields are considered additionals. In theory this can read most ANSI extension of BibTEX.
Code in first post and updated BibTexApp in development.

Regards, HSE.

Biterider

  • Moderator
  • Member
  • *****
  • Posts: 730
  • ObjAsm Developer
    • ObjAsm
Re: BibTex routines
« Reply #10 on: February 10, 2021, 05:16:16 PM »
Hi HSE
The source compiles well.  :thumbsup:
I'm seeing a lot of parsing going on, probably the new stuff. I'll take a closer look this weekend.

Biterider

HSE

  • Member
  • *****
  • Posts: 1745
  • <AMD>< 7-32>
Re: BibTex routines
« Reply #11 on: February 10, 2021, 11:52:19 PM »
Hi Biterider!

I'm seeing a lot of parsing going on, probably the new stuff.
:biggrin: There are four Finite State Machines, some become a lot more complex than initially was thinked.

Individual file processing is almost complete but, fun never end.

BibTEX processes sequences of files. That sequences are contained in the LaTEX files you write. Because that, BibTEX open .tex files, no .bib files. Even if you are not using LaTEX could be convenient to split definitions (like authors or journals) in different files. Then, next step is to process sequences of files   :eusa_boohoo:

Regards, HSE.