Author Topic: Clinched Routes Highway Shields  (Read 5453 times)

0 Members and 1 Guest are viewing this topic.

Offline yakra

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 1171
  • Last Login:Today at 01:34:36 pm
Re: Clinched Routes Highway Shields
« Reply #105 on: January 31, 2018, 05:03:33 pm »
Just thinking out loud here; I haven't looked into the ShieldGen code, as I don't grok the language it's written in, and thus don't understand, in detail, what makes it tick. It's possible that I'm missing something important.

The main issue with canmb was the superscripted letters, which I'm not sure how to handle.
If we just say fudge-it-this-is-better-than-nothing and include regular letters, is that doable?
It is, and there are a few others in that category (PEI for example). Or we could just estimate.
PEI GMSV examples: 17A, 18A, and 19A (which uses a smaller font size 'A' than the first two examples)
I take "that category" to mean using letters in a smaller font size, thus complicating sizing & positioning of the text, and not necessarily superscript specifically.
usane has a similar route, NE25A, which is handled in the HB like a normal 3dNE (Compare vanilla NE25).
(To be clear, I'm perfectly fine with the way NE25A is handled in the HB; I'm just mentioning that here for completeness & comparison's sake.)

For how to handle these cases, the best comparison I can think of is usanh.
Like many other systems, ShieldGen already has to check whether a route is a 1d/2dNH or 3dNH to get the sizing & positioning of the text right. But it also has to check whether a route has a letter suffix, in which case the text is handled differently.
From viewing the source in the HB, it looks like this is done via two <text> tags, each with different x= & y= variables in the <tspan> tag.
This should be adaptable to canpe & canmb... or is there more to it?
« Last Edit: January 31, 2018, 05:06:56 pm by yakra »

Offline rschen7754

  • Newbie
  • *
  • Posts: 38
  • Gender: Male
  • Last Login:February 19, 2018, 08:47:33 pm
    • Rschen7754
Re: Clinched Routes Highway Shields
« Reply #106 on: February 01, 2018, 02:27:25 pm »
For how to handle these cases, the best comparison I can think of is usanh.
Like many other systems, ShieldGen already has to check whether a route is a 1d/2dNH or 3dNH to get the sizing & positioning of the text right. But it also has to check whether a route has a letter suffix, in which case the text is handled differently.
From viewing the source in the HB, it looks like this is done via two <text> tags, each with different x= & y= variables in the <tspan> tag.
This should be adaptable to canpe & canmb... or is there more to it?

The problem is that the SVG template doesn't have a space for the letter. That doesn't mean that someone couldn't estimate where it is and add it.

I generally prioritize shields where I don't have to do that sort of thing. Sometimes I am able to come back to more complex cases as my SVG/shield skills improve. I'm hoping to get more Nova Scotia shields done soon since those were added to Commons recently.

Offline yakra

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 1171
  • Last Login:Today at 01:34:36 pm
Re: Clinched Routes Highway Shields
« Reply #107 on: February 02, 2018, 12:33:18 am »
Quote
That doesn't mean that someone couldn't estimate where it is and add it.
Willing to take a stab at it. A lot of learning to do, though. I just figured out "resize page to content" in Inkscape...

Offline rschen7754

  • Newbie
  • *
  • Posts: 38
  • Gender: Male
  • Last Login:February 19, 2018, 08:47:33 pm
    • Rschen7754
Re: Clinched Routes Highway Shields
« Reply #108 on: February 02, 2018, 01:30:47 am »
I would recommend starting with what Commons already has and working off that. For the letters, it may help to pull up an existing shield and estimate where the letter field would go from that.

Offline yakra

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 1171
  • Last Login:Today at 01:34:36 pm
Re: Clinched Routes Highway Shields
« Reply #109 on: February 02, 2018, 03:11:53 pm »
Commons uses an older style, without the bison graphic. Based off this one example, the text may be centered a bit differently too. I may just have to eyeball it.
I'm interested in doing this, yes, but it's a low priority. Got a few things on my plate. :)

Offline yakra

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 1171
  • Last Login:Today at 01:34:36 pm
Re: Clinched Routes Highway Shields
« Reply #110 on: February 03, 2018, 03:07:23 pm »
Riscussion re Manitoba Provincial Roads shields split and merged into the Manitoba Provincial Roads thread.
http://tm.teresco.org/forum/index.php?topic=2344.msg8872#msg8872

Offline yakra

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 1171
  • Last Login:Today at 01:34:36 pm
Re: Clinched Routes Highway Shields
« Reply #111 on: February 04, 2018, 11:26:05 am »
State abbreviations in out-of-state route segments:

tm.teresco.org/hb/?r=pa.ny017swa
tm.teresco.org/hb/?r=ct.ny120agre

tm.teresco.org/hb/?r=nh.me113cha
tm.teresco.org/hb/?r=nh.me113con

Offline Eth

  • Newbie
  • *
  • Posts: 11
  • Last Login:Today at 01:33:28 pm
Re: Clinched Routes Highway Shields
« Reply #112 on: February 07, 2018, 05:26:25 pm »
State abbreviations in out-of-state route segments:

tm.teresco.org/hb/?r=pa.ny017swa
tm.teresco.org/hb/?r=ct.ny120agre

tm.teresco.org/hb/?r=nh.me113cha
tm.teresco.org/hb/?r=nh.me113con

See also http://tm.teresco.org/hb/?r=ga.tn068.