Giter VIP home page Giter VIP logo

bard's People

Contributors

0atman avatar vitskalicky avatar vojtechkral avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bard's Issues

Multicol in bard 2.0

Hello @vojtechkral !
I'm using your alpha release. Everything works great after adjusting the templates.
Except the multi column layout.
I get this error:
grafik

In the pdf.hbs I'm using the following code:

\setlength{\columnsep}{15mm}
{{#*inline "h-columns"}}
\begin{absolutelynopagebreak}
\begin{multicols}{ {{~ num ~}} }
{{/inline}}

{{#*inline "h-/columns"}}
\end{multicols}
\end{absolutelynopagebreak}
{{/inline}}

And in the song itself I enclose the text between:
<columns num=2>
and
</columns>

Can you please help me to make it work?

Secondary chord set

Hello @vojtechkral !
Thank you very much for developing this project! It's exactly what I've been looking for a long time.
Now I try to build my first songbook and I can't get it to work with a secondary chord set. One !-3 is working while transposing. As soon I set two !!-3 it doesn't work anymore with the following error while generating the pdf:
! Undefined control sequence.

I'm running Ubuntu 22.04 with texlive-xelatex (latexmk).

Intro and Solo parts

Hi @vojtechkral !
I made the songbook and I use your software regularly to add new songs. Again, I'm very happy with your solution! Thank you very much!
Do you have a solution to bring the chords without lyrics on the same line as the custom labels (to save space) like Solo and Intro parts? At the moment I have here some songs that have repeating Intro, Solo or Instrumental parts and there I add "x2" and the result looks like this (and I'm not quite happy with this):
grafik
grafik

I could just write the chords as text, but these wouldn't transpose then:
grafik

Maybe you have also a better idea to display repeating parts?

2-column layout

Hello,
I'm using your amazing program to generate songbook of A4 paper size, which results in lots of wasted space on some pages. I would like to set some parts of certain songs that have short lines to be in 2 columns to save space.

For example Pověste ho vejš has a few short verses at the end that on my layout just don't fit onto single page. I want to put these into 2 columns so that they would fit.

# Pověste ho vejš
## Harlej

   Na dnešek jsem měl divnej sen
   slunce pálilo a před salonem
   stál v prachu dav, v tvářích cejch očekávání
   uprostřed šibenice z hrubých klád
   šerifův pomocník sejmul z hlavy odsouzenci kápi
   a dav zašuměl překvapením
   i já jsem zašuměl překvapením
   ten odsouzenec jsem byl já
   a šerif četl neúprosným hlasem rozsudek:

> Pověste ho `Ami`vejš, ať se houpá,
   pověste ho `C`vejš, ať má `G`dost.
   Pověste ho `Dmi`vejš, ať se `Ami`houpá,
   že tu `G`byl nezvanej `Ami`host.

1. Pověste ho, že byl jinej,
   že tu s námi dejchal stejnej vzduch.
   Pověste ho, ze byl línej
   a tak trochu dobrodruh.

2. Pověste ho za El Passo,
   za snídani v trávě a lodní zvon.
   Za to že neoplýval krásou,
   že měl `F`country rád, že se `E7`uměl smát i `Ami`vám.

### : 
   Nad hlav`C`ou mi slunce p`G`álí konec m`Dmi`ůj nic neodd`C`ál`G`í,
   do svejch `C`snů se dívám z `G`dáli.
   A do `Dmi`uší mi stále zní tahle `E7`moje píseň poslední

> Pověste ho vejš.... 

(2 columns begin)

3. Pověste ho za tu banku,
   v který zruinoval svůj vklad,
   za to že nikdy nevydržel
   na jednom místě stát. 

4. Pověste ho za tu jistou,
   který nesplnil svůj slib,
   že byl zarputilým optimistou
   a tak dělal spoustu chyb.

5. Pověste ho, že se koukal,
   a že hodně jed a hodně pil,
   že dal přednost jarním loukám
   a pak se oženil a pak se usadil a žil

### :
   Nad hlavou mi slunce pálí...
   
> Pověste ho vejš.... 

(2 columns end)

I've been thinking on how to mark it and my idea is to use three vertical lines followed by number of columns. Number of columns is reset at the end of each song. My proposal:

# Song title

1. single column

|||2
2. these verses will be
  typeset in 2 columns
3. In LaTeX multicols will be used
 in html I don't know yet
|||1

If the |||1 wasn't used, 2-column layout would be terminated anyway because the song ends.

Another idea I had was to use ||> to start 2-column layout and ||< to end it instead.

# Song title

1. single column

||>
2. these verses will be
  typeset in 2 columns
3. In LaTeX multicols will be used
 in html I don't know yet
||<

I would like to help on this as much as possible, but I have very little experience wirh rust.

Formatting

Hi again @vojtechkral :-)
I have now translated a few Word documents into Markdown. It works really well!
Now it comes to formatting. A few questions:

  1. Is it possible to shrink down only parts of the document fonts (for ex. one song or one line of a song)? I have some songs where the line doesn't fit into one line and the text runs out of the paper on the right hand.
  2. Is it possible to format the second chord set side by side instead of on top of each other (to save space for ex. 2nd chord set in brackets)?
  3. How can I set the !> reference to bold?
  4. Setting text to italic doesn't work, but mark text as bold works fine. Is this probably a bug in the handlebars file?

Thanks for your help.

Rework parser

Use more generic AST / closer to Md. Basically just Md with custom extensions (clef, transp.)

2.0 Release meta issue

2.0 checklist:

  • LaTeX processing refactor
    • Auto LaTeX lookup
    • Define PDF format
    • tex config option
    • Provide local overriding → postponed to post-2.0
    • Replace post-processing with a script option
    • Built-in Tectonic on Windows (cf. #13)
  • bard.toml v2 update, versioning
  • Hbs math helper #14
  • Tests & CI updates
  • bard.toml migration guide
  • #2

Update and finish documentation

  • Update installation guide
    • Explain built-in tectonic on Windows
    • Link tectonic-less binary for Windows
  • Licensing, credits, authors
    • add contributors note
    • fonts licensing
    • Tvrz
  • Project setup
    • sans_font
    • sorted ToC
  • Writing / MD
    • finalize
    • bare chords
    • smart_punctuation
  • Notation & Transposition
  • Fonts
  • Images
    • DPI
  • TeX - BARD_TEX, Settings::tex, Output::tex_runs
    • link from code
  • Templates
    • Upgrading
    • "HTML" extensions
  • JSON & XML
  • Script
  • Hovorka
  • bard.toml reference
  • migration guide to v2
    • link from code
  • Review / re-read the whole thing

  • Refactor README.md
  • Remove old doc

Feature: capo declaration

Hello @vojtechkral
Thanks for your continous work. I just updated my songbook to the latest version 2.0.1.

I have many songs that require a capo.
Until now I declared the capo like this:

# song1
## band

K:2

The problem is that the page size is limited and sometimes a page break occurs just because of this one line.
I would like to see a feature that handles this K:2 and places it to the top right of the page so it doesn't take up any more vertical space.
And maybe we can highlight that using a red bold font. What do you think?

Add anchors in TOC and Footer of each page?

Hello! This project is incredible. I was investigating using LaTex directly for creating a song book for a group with a few dozen songs. (50+) Somebody sent me a link to your project. Almost exactly what I was looking.

I am a veteran programmer but in Java and Golang. Never used Rust or LaTex, but I'm a quick study. Just need a nudge in the right direction.

Do you think it would be possible to have the table of contents contain links to each song? And then have a link in the footer of each page to be "link to the top" and have it jump back to the ToC?

UPDTATE: It took me some testing, but now have a much better idea of what you did with the TOML and the hbs. I see the the ToC already links to each song. My hat is off to you. This project is really nice.

I propose two three additional options in the ouput section of the TOML, and if you are interested I can craft up a PR.

  1. Insert a "Jump to the Top" in the footer of every page.
  2. Insert a \newpage at the end of each song. This way , each song gets its one page(s).
  3. Toggle between A4 / A5 / LetterStandard if on the PDF.

I'm happy to craft up a PR, but will need a little help in which files I should dig into. I see that I would need to trace them through from the output.rs -> pdf.hbs (not sure about what to do with html one), and of course the documentation to show the new option.

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.