bugtex4ht - Bugs: bug #450, adding https:// to \url

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #450: adding https:// to \url

Submitted by:  Karl Berry <karl>
Submitted on:  Fri 28 Feb 2020 12:56:32 AM EET  
 
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Thu 16 Apr 2020 11:53:29 PM EEST, comment #1:

for the record, i figured this is not something to be done in tex4ht. i've added new commands to ltugboat.sty, \tbsurl and others, to support this. closing.

Karl Berry <karl>
Project Administrator
Fri 28 Feb 2020 12:56:32 AM EET, original submission:

Hi Michal - here's a crazy question. For TUGboat, like many other journals, we now prefer to omit the http[s]:// from urls, so the TeX source just uses commands like \url{tug.org}.

The result from tex4ht is href="tug.org", that is, a relative (filesystem) link.

So, my question is, is there any chance of \url looking at its argument and adding the https:// prefix if no protocol:// is already there? (In cases where https:// is not the right thing, I could insert the protocol explicitly. Not worried about perfection, just wondering about the most common case.)

I know I could fully define the link separately from the displayed text with \href{...}, but, that's a pain. So, just thought I'd ask. Thanks.

Karl Berry <karl>
Project Administrator

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by karl (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    1 latest change follows.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 16 Apr 2020 11:53:29 PM EESTkarlOpen/ClosedOpen=>Closed
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup+gray