Bug 147595

Summary: Adding a barcode variant with a text label
Product: LibreOffice Reporter: kabilo <minute.visitors>
Component: CalcAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: enhancement CC: minute.visitors, samuel.mehrbrodt, Tex2002ans+LibreOffice
Priority: medium    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 127232    

Description kabilo 2022-02-22 15:21:02 UTC
Description:
Would it also be possible to create a barcode variant with a text label?

Actual Results:
barcode without text label is generated

Expected Results:
enable barcode generation with text label


Reproducible: Always


User Profile Reset: No



Additional Info:
Comment 1 Samuel Mehrbrodt (allotropia) 2022-02-23 13:01:28 UTC
Is Barcode ever used without text?
Maybe we don't need another variant, just always add the text below.
Comment 2 kabilo 2022-02-23 14:44:41 UTC
Text label printing (and possible alignment) is usually an optional item in specialized programs. I always print it, Thanks
Comment 3 Tex2002ans 2023-08-31 13:06:08 UTC
> Is Barcode ever used without text?

Yes.

> Maybe we don't need another variant, just always add the text below.

No. Text should always be an optional addon.

(Often enabled by default, but should still be optional.)

- - -

Having text along with the barcodes is very important for things like ISBNs on books or back of book covers.

This allows a human to read what the heck the barcode says, and not *require* a scanning device to tell them.

- - -

The best document I ever came across on all the different barcode variants/types was for a LaTeX package called:

- pst-barcode

A PDF of their documentation can be found here:

- http://mirrors.ctan.org/graphics/pstricks/contrib/pst-barcode/doc/pst-barcode-doc.pdf

Text/Numbers can be written:

- Below/Above the barcode.
- "Inside"/"Overlapping" the barcode slightly.
- Along the whole length of the barcode
   - Where each text character goes below its equivalent barcode symbol.
   - So each letter could have large "gaps" between them.
   - (Or, text just written normally + centered below barcode.)

See the documentation for all sorts of example images and detailed descriptions.

- - -

I suspect for this enhancement, it would be okay just to produce:

- Centered text.
- Below the barcode.

and have a checkbox to turn it on/off.