lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to avoid font substitution


From: Flaming Hakama by Elaine
Subject: how to avoid font substitution
Date: Fri, 21 Jan 2022 20:47:45 -0800


Now that I am setting up a new environment on a new machine, 
I am running into a problem again, 
and I don't recall how I solved it last time.

When I compile a pdf locally, it looks fine.

But when I upload it to a site, then download it on an iPad, it shows different fonts.

Is there a way to either embed fonts in the pdf, or to convert the characters to outlines?

I tried using --pspdfopt=TeX since that claimed to
"Produce files that are optimized for inclusion in pdfTeX, luatex, or
XeTeX documents.  Using this value is equivalent to setting LilyPond’s Scheme command
line options -dmusic-font-encodings='#t' and -dgs-never-embedfonts='#f'."

I saw some hope there by reading this as saying "never embed fonts is false, therefore embed fonts".

But that did not seem to have the desired effect.

Please let me know if you have any clues.


Thanks.


Elaine Alt
415 . 341 .4954                                           "Confusion is highly underrated"
elaine@flaminghakama.com
Producer ~ Composer ~ Instrumentalist ~ Educator
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


On Tue, Jan 18, 2022 at 11:31 AM <lilypond-user-request@gnu.org> wrote:
Send lilypond-user mailing list submissions to
        lilypond-user@gnu.org

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.gnu.org/mailman/listinfo/lilypond-user
or, via email, send a message with subject or body 'help' to
        lilypond-user-request@gnu.org

You can reach the person managing the list at
        lilypond-user-owner@gnu.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of lilypond-user digest..."
Today's Topics:

   1. ice-9 i18n string-locale-upcase (Simon Albrecht)
   2. Re: ice-9 i18n string-locale-upcase (Jean Abou Samra)
   3. Re: Display Question Mark at center of a measure (Rajesh Baskar)
   4. Re: Display Question Mark at center of a measure (Jean Abou Samra)
   5. Re: optical recognition for input (Valentin Petzel)



---------- Forwarded message ----------
From: Simon Albrecht <simon.albrecht@mail.de>
To: lilypond-user <lilypond-user@gnu.org>
Cc: 
Bcc: 
Date: Tue, 18 Jan 2022 18:01:26 +0100
Subject: ice-9 i18n string-locale-upcase
Hi everyone,

I wanted to set up some customisable headings using #(string-upcase
"string"), but it doesn’t work on German umlauts, so I came upon
string-locale-upcase on this page:

https://www.gnu.org/software/guile/docs/docs-2.2/guile-ref/Character-Case-Mapping.html#Character-Case-Mapping

However, I can’t get it to work. To this example file:

%%%%%%%%%%%%%%%%%%%%%%%%
\version "2.23.5"
#(use-modules (ice-9 i18n))
\markup \column {
   #(string-upcase "üß")
   #(string-locale-upcase "üß" "de_DE")
}
%%%%%%%%%%%%%%%%%%%%%%%%

Guile says: “no code for module (ice-9 i18n)”.

Why? Can I load the module another way? Will it do what I want? Should I
use another tool? ;-)

Thanks in advance,
Simon






---------- Forwarded message ----------
From: Jean Abou Samra <jean@abou-samra.fr>
To: Simon Albrecht <simon.albrecht@mail.de>, lilypond-user <lilypond-user@gnu.org>
Cc: 
Bcc: 
Date: Tue, 18 Jan 2022 18:52:22 +0100
Subject: Re: ice-9 i18n string-locale-upcase
Le 18/01/2022 à 18:01, Simon Albrecht a écrit :
> Hi everyone,
>
> I wanted to set up some customisable headings using #(string-upcase
> "string"), but it doesn’t work on German umlauts, so I came upon
> string-locale-upcase on this page:
>
> https://www.gnu.org/software/guile/docs/docs-2.2/guile-ref/Character-Case-Mapping.html#Character-Case-Mapping
>
>
> However, I can’t get it to work. To this example file:
>
> %%%%%%%%%%%%%%%%%%%%%%%%
> \version "2.23.5"
> #(use-modules (ice-9 i18n))
> \markup \column {
>   #(string-upcase "üß")
>   #(string-locale-upcase "üß" "de_DE")
> }
> %%%%%%%%%%%%%%%%%%%%%%%%
>
> Guile says: “no code for module (ice-9 i18n)”.
>
> Why? Can I load the module another way? Will it do what I want? Should
> I use another tool? ;-)


Because this is documentation for Guile 2
and current releases of LilyPond still have
Guile 1.8. Try Jonas' latest *experimental*
binaries using Guile 2:

https://lists.gnu.org/archive/html/lilypond-devel/2021-12/msg00007.html
or rather
https://lists.gnu.org/archive/html/lilypond-devel/2021-12/msg00078.html
if you are using Windows.

Best,
Jean






---------- Forwarded message ----------
From: Rajesh Baskar <rajeshbv@hotmail.com>
To: Lukas-Fabian Moser <lfm@gmx.de>, lilypond-user@gnu.org
Cc: 
Bcc: 
Date: Tue, 18 Jan 2022 10:14:23 -0800
Subject: Re: Display Question Mark at center of a measure

Thanks Lukas and Jean for your help.

There is an issue with the below solution. When adding <<  and >> the visual is correct but while playing the score the first measure notes all play together. I'm guessing it's because of << >>. Is there a way to fix this.

Thanks for all the help.

Raj

On 1/14/2022 1:39 AM, Lukas-Fabian Moser wrote:
Hi Rajesh,

Am 14.01.22 um 01:44 schrieb Rajesh Baskar:
I'm tying to display a question mark at the center of the 1st measure in a 2 measure score.

I have got this working with hard-coding the offset (3 . 4.5) but this will not work when the number of notes in a measure is larger than 3. Is there a way to get this to work dynamically where the question mark moves to the center of the measure irrespective of the length of a measure.

Please try to remove everything in your examples not actually related to the problem at hand (here, for example, everything having to do with MIDI, proportional notation, boxed measure counters etc.).

What comes to mind is that your question mark is exactly in the position where you would normally expect a whole bar rest. So how about:

\version "2.22.0"

#(define (center-stencil stil)
   (ly:stencil-aligned-to
    (ly:stencil-aligned-to stil X CENTER)
    Y CENTER))

questionMarkMultiMeasureRest = {
  \override MultiMeasureRest.stencil =
  #(grob-transformer
    'stencil
    (lambda (grob default)
      (ly:stencil-translate-axis
       (center-stencil (ly:text-interface::print grob))
       (interval-center (ly:stencil-extent default X))
       X)))
  \override MultiMeasureRest.text = "?"
  \override MultiMeasureRest.font-size = 7
  \override MultiMeasureRest.color = "#6A00F4"
}

\new Staff {
  \clef bass
  <<
    { \hideNotes b2 c }
    \new Voice {
      \questionMarkMultiMeasureRest
      R1
    }
  >>
  \unHideNotes a2 c'4 g
}

One could of course wrap the simultaenous addition of the tweaked full bar rest in a music function.

The reason I'm using such a comparatively complex stencil override is that the default positioning of the MultiMeasureRest (which is what we want here) is handled in the default stencil; if we overwrite that function completely, we don't get the nice centered alignment we want.

Lukas




---------- Forwarded message ----------
From: Jean Abou Samra <jean@abou-samra.fr>
To: Rajesh Baskar <rajeshbv@hotmail.com>, Lukas-Fabian Moser <lfm@gmx.de>, lilypond-user@gnu.org
Cc: 
Bcc: 
Date: Tue, 18 Jan 2022 19:40:16 +0100
Subject: Re: Display Question Mark at center of a measure
Le 18/01/2022 à 19:14, Rajesh Baskar a écrit :
>
> Thanks Lukas and Jean for your help.
>
> There is an issue with the below solution. Whenadding <<  and >> the
> visual is correct but while playing the score the first measure notes
> all play together. I'm guessing it's because of << >>. Is there a way
> to fix this.
>
> Thanks for all the help.
>
> Raj
>

I cannot reproduce. Can you paste the complete code that
demonstrates the problem?

Thanks,
Jean






---------- Forwarded message ----------
From: Valentin Petzel <valentin@petzel.at>
To: lilypond-user@gnu.org
Cc: Paul Hodges <pwh@cassland.org>, vgay@vintherine.org
Bcc: 
Date: Tue, 18 Jan 2022 20:30:24 +0100
Subject: Re: optical recognition for input
Out of interest I tried Audiveris on a rather simple Lilypond score. The
results are somewhat okay, but not stellar (see for yourself). I think with
more complex scores this will quickly get messy. So I guess this could save
some time in very specific situations.

But the question is: Would you want that? In situations where this works you
probably have a high quality scan of a quality score, so the only reason why
you’d want to engrave it is to change things. But going the Scan→MusicXML→Ly
will not give you the clean structure you’d get from typing it yourself, so
working with these files is harder.

Cheers,
Valentin

Am Dienstag, 18. Jänner 2022, 10:36:36 CET schrieb Paul Hodges:
> From:   Vincent Gay <vgay@vintherine.org>
>
> By curiosity I tried it with a score produced by Lilypond, the result is
> not very satisfactory. As it is, it seems to me that it is quicker to
> enter everything on the keyboard than to correct what the software has
> recognized.
>
> I've not tried Audiveris; but this is my impression from the Music OCR
> programs I've tried.  I found PhotoScore (which came with Sibelius)
> essentially useless.
>
>
> I do use SharpEye (http://www.visiv.co.uk/) sometimes, on a clean score, but
> only some very specific styles of music make it worth it.  The ability to
> edit on the spot, with the original in view is handy - except that the
> editor is extremely strange and hard to use.  The current version is
> fifteen years old...
>
>
> Paul_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

reply via email to

[Prev in Thread] Current Thread [Next in Thread]