Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 17 20:24
    Nainoia-Inc-Admin edited #307
  • Jan 17 20:14
    Nainoia-Inc-Admin edited #307
  • Jan 17 20:08
    Nainoia-Inc-Admin edited #307
  • Jan 17 19:58
    Nainoia-Inc-Admin opened #307
  • Jan 17 11:47
    pgundlach commented #306
  • Jan 17 03:49
    Nainoia-Inc-Admin edited #306
  • Jan 17 03:46
    Nainoia-Inc-Admin opened #306
  • Jan 15 10:49
    pgundlach labeled #305
  • Jan 15 10:49
    pgundlach milestoned #305
  • Jan 15 10:49
    pgundlach assigned #305
  • Jan 15 10:49
    pgundlach opened #305
  • Jan 14 09:39
    pgundlach milestoned #303
  • Jan 14 09:39
    pgundlach assigned #303
  • Jan 14 09:39
    pgundlach labeled #303
  • Jan 14 09:39
    pgundlach opened #303
  • Jan 13 12:28
    pgundlach milestoned #302
  • Jan 13 12:28
    pgundlach labeled #302
  • Jan 13 12:28
    pgundlach opened #302
  • Jan 13 10:34

    pgundlach on master

    Move main.html to publisher.htm… Update example aesopgnatbull Update example grid and 15 more (compare)

  • Jan 13 09:36
    pgundlach commented #301
Patrick Gundlach
@pgundlach
The first one should work, I'd consider this is a bug. The second one should create an empty row.
Demosteneus
@Demosteneus
I double checked, first option definitely doesn't work.
Found another way that works as I expect.
<Tablehead page="first">
<Tablerule color="white" rulewidth="0pt"/>
</Tablehead>
Patrick Gundlach
@pgundlach
I'll add an issue to the tracker.
(#271)
B Kroggel
@bkroggel

Hi everybody,
I am currently working on a project where I need to place multiple logos of corporations. While they all do have different heights/widths/dimensions they need to be centered in a certain space. Is there a way of placing images so they are expanding to the maximum set width/height (whatever is smaller) while keeping the aspect ratio – and centering it (horizontal/vertical). From a web developer point of view I am basically looking for something like "object-fit: contain".

For now I only see the possibility to

<Image file="filename.pdf" maxwidth="4" maxheight="2" />

which shrinks the image and keeps the aspect ratio (if the natural image size is bigger than the max-values – but it shifts the image either to the left or top.

Is there a way of working around that which I currently have missed?

Patrick Gundlach
@pgundlach
@bkroggel perhaps I misunderstood, but can you just specify one dimension and set clip=„no“?
Perhaps this is a limitation of the publisher at the moment. Could you open an issue on the bug tracker and I‘ll investigate further.
Patrick Gundlach
@pgundlach
I am currently not on my computer,so I can’t try.
B Kroggel
@bkroggel

@pgundlach unfortunately not as some logos are higher than wide and with others it is the other way round – so in the end I would need to have a container to which the image could expand (but not exceed those limitations). However, I agree that it probably makes sense to open up an issue and explain it more detailed. I will do that tomorrow morning and create a small visualization of my use case which should help clarify my problem.#

Thanks for your quick response by the way.

B Kroggel
@bkroggel

@pgundlach just wanted to quickly follow up my question from yesterday evening. The missing piece that I had not considered using – but eventually solved my problem – was the Table element. Setting width as well as a stretch="max" on a Table element and minheight="2" align="center" on the child Tr creates a container in which I am able to place my logos in a way that they are always centered on the x as well as the y axis.

That in combination with maxwidth and maxhight on a child image is pretty much what I was looking for.
I am really looking for working closer with the publisher – it is an amazing pice of software. Thanks a lot for that

Patrick Gundlach
@pgundlach
@bkroggel thank you for the message. If you need any help, don’t hesitate to contact my (here, bug report, private mail,...), Any feedback is welcome.
Matteo Rodríguez
@Matteo_Rodriguez_gitlab
Hi, is it possible to include in <Value> symbols like this https://www.compart.com/en/unicode/U+2731
I cannot get it to work.
Patrick Gundlach
@pgundlach
@Matteo_Rodriguez_gitlab This should work out of the box. Does the font support this symbol?
Matteo Rodríguez
@Matteo_Rodriguez_gitlab
hmm... I am using Arial, how can I check that?
Also, just to be clear, I don't need the asterisk that is on the keyboard, I need the big asterisk.
Patrick Gundlach
@pgundlach
You can use font goggles (https://fontgoggles.org) for example if you are on a mac - I don't know much about other platforms
Matteo Rodríguez
@Matteo_Rodriguez_gitlab
No, it doesn't appear to support heavy asterisk.
Any way to override this?
Any way I can set a different font for only a part of a paragraph?
Got it, using fontface :)
fontface is also good, (this is fontfamily in version 4.1.11 and above)
Matteo Rodríguez
@Matteo_Rodriguez_gitlab
Hi, is there any way to not split strings that have a hyphen inside?
for example 27-10-2020 ?
I have set hyphenate="no" to the textformat and this works for words, but strings like the one above are still split.
Demosteneus
@Demosteneus
Try adding allowbreak=" " to the paragraph
Matteo Rodríguez
@Matteo_Rodriguez_gitlab

Hello, is there any way to break from a loop ?

Lets say I start a infinite loop and want to break it once a condition is met. Is this possible ?

Patrick Gundlach
@pgundlach
@Matteo_Rodriguez_gitlab No, you can't exit a loop. You can use a while loop instead
@Matteo_Rodriguez_gitlab ... or until
B Kroggel
@bkroggel

Just stumbled upon an issue with my most recent speedata work that results in characters overlapping each other.
The issue only occurs if I don‘t use the pre-build in fonts but rather copy a custom one to the working folder (tried with multiple ones including the popular Inter font as well as the Apple default SF Text).

The layout.xml configuration below is a very barebone excerpt that leads to the issue:

<Layout xmlns="urn:speedata.de:2009/publisher/en"
        xmlns:sd="urn:speedata:2009/publisher/functions/en">

  <Trace grid="yes"/>

  <LoadFontfile name="InterRegular" filename="InterRegular.otf" />
  <DefineFontfamily name="inter" fontsize="12" leading="70">
    <Regular fontface="InterRegular"/>
  </DefineFontfamily>

  <Record element="data">
    <PlaceObject>
      <Textblock>
        <Paragraph>
          <Fontface fontfamily="inter">
            <Value>This is a test</Value>
          </Fontface>
        </Paragraph>
      </Textblock>
    </PlaceObject>
  </Record>
</Layout>

Am I missing something out?
As always thanks for your help :)

Bildschirmfoto 2020-12-07 um 12.01.12.png
Patrick Gundlach
@pgundlach
@bkroggel which version are you using? This should (in priniciple) work, but obviously you've hit a bug.
@bkroggel Oh, I can reproduce this with the current version.
B Kroggel
@bkroggel
Yep :) just grabbed the most current version the other day
Patrick Gundlach
@pgundlach
@bkroggel I am working on it, but can't give you an ETA. The inter font has a non-standard size setting, so I need to find out which values I need to scale without affecting other fonts.
B Kroggel
@bkroggel
Of course @pgundlach. I appreciate every line of code you write for this wonderful piece of software and many thanks for the fast reply. Could honestly not even ask for that :D. I will stick around on github to not miss out once you resolve the issue.
Patrick Gundlach
@pgundlach
@bkroggel Thank you very much for your kind words! This font scaling bug should be fixed in version 4.1.21 (with oven warm bytes on the dowload page). And thank you for the bug report, this is very helpful!
b0b23
@b0b23
hi, I'm sorry, I'm new to this gitter interface. Can I ask questions outright?
Patrick Gundlach
@pgundlach
Yes
Just go ahead
b0b23
@b0b23
I wasn't sure - you asked me to use gitter or the discussion pages on github - which appears to be empty
Patrick Gundlach
@pgundlach
GitHub is very new and nobody has used it before.
b0b23
@b0b23
ok, I asked about html texts with new lines in speedata publisher, as I'm having trouble to get new lines working with markdown->html formatted text. you mentioned the dev version 4.3.1. so I looked it up, tried it, looked into the latest bug fix commits
Patrick Gundlach
@pgundlach
(The questions and answers section on GitHub)
b0b23
@b0b23
br in element has no effect #293 <- was very helpful
b0b23
@b0b23
hmm how do I use code tags? default markdown?
Patrick Gundlach
@pgundlach
There is a html example in the examples repository which shows the use of code tags. I can send the link later on.
b0b23
@b0b23
it's okay for now... in the bug description you used the data.xml - so the bug was fixed, but it only works for 1 tag, not for multiple. correct?
Patrick Gundlach
@pgundlach
I‘d need an example to see what I mean
b0b23
@b0b23

```
<data>
<part>A1</part>
<part>
<br />
</part>
<part>
<br />
</part>
<part>
<br />
</part>
<part>B</part>

<s>a<b><br/></b>b</s>

</data>

Patrick Gundlach
@pgundlach
@b0b23 That looks like a bug. I need to investigate.
Patrick Gundlach
@pgundlach
@b0b23 I have opened #303
b0b23
@b0b23
@pgundlach thank you!
b0b23
@b0b23
@pgundlach I opened a new "discussion" on the github page, hope it's okay. Again - it's not a critique on speedata publisher at all. Your software is awesome, I'm not very proficient in it yet, but so far it is quite great. Honestly, that "new lines" / "empty lines" thing is the last thing I can't get right - everything else works really well. Thank you!
Patrick Gundlach
@pgundlach
@b0b23 The HTML interface is completely rewritten in the version 4. The br and newline are tricky and buggy, but will be fixed eventually. I can't give you an extimation yet, but I am working on it.