Train GraphicClick on the map to explore geographics
 
I need help
FAQ
Emergency
About .
Travel & transport from BBC stories as at 08:35 07 Oct 2024
 
- Deadly blast hits convoy of Chinese engineers in Pakistan
Read about the forum [here].
Register [here] - it's free.
What do I gain from registering? [here]
 11/10/24 - TWSW General Meeting
22/10/24 - BoA Public Transport talk
25/10/24 - Melksham Transport Group
27/11/24 - WWRUG, Trowbridge

No 'On This Day' events reported for 7th Oct

Train RunningCancelled
08:36 Redhill to Reading
09:00 Gatwick Airport to Reading
16:35 Didcot Parkway to Banbury
17:33 Banbury to Didcot Parkway
Short Run
06:48 Cheltenham Spa to London Paddington
Delayed
09:10 Penzance to London Paddington
Abbreviation pageAcronymns and abbreviations
Stn ComparatorStation Comparator
Rail newsNews Now - live rail news feed
Site Style 1 2 3 4
Next departures • Bristol Temple MeadsBath SpaChippenhamSwindonDidcot ParkwayReadingLondon PaddingtonMelksham
Exeter St DavidsTauntonWestburyTrowbridgeBristol ParkwayCardiff CentralOxfordCheltenham SpaBirmingham New Street
October 07, 2024, 08:49:12 *
Welcome, Guest. Please login or register.

Login with username, password and session length
Forgotten your username or password? - get a reminder
Most recently liked subjects
[155] New station at Ashley Down, Bristol
[109] Comparing old and new trains
[91] ARE there enough train crew?
[82] Why punch a hole in a rover / ranger ticket?
[49] Shortage of train crews on Great Western Railway - ongoing dis...
[36] You want to join at Melksham rather than Trowbridge? That will...
 
News: the Great Western Coffee Shop ... keeping you up to date with travel around the South West
 
   Home   Help Search Calendar Login Register  
Pages: [1]
  Print  
Author Topic: URLs corrupting when they have an abbreviation embedded in them  (Read 1266 times)
grahame
Administrator
Hero Member
*****
Posts: 42047



View Profile WWW Email
« on: May 12, 2024, 09:45:10 »

(Edit: removed the link to realtimetrains timetable for yesterday at Gloucester as, when posted, something strange was happening to it.)

Yes, aware of that one.  It relates to expanded abbreviations and URLs that include acronyms within them.  Significant coding job to correct the issue and with all sorts of likely side effects - adding complexity would add special cases.

Best solution is to mention the abbreviation in the text above the URL.   Outside a URL, it is possible for the poster to suppress expansion by adding another tag pair within it - for example an italic start and end tag.

Logged

Coffee Shop Admin, Acting Chair of Melksham Rail User Group, Option 24/7 Melksham Rep
GBM
Transport Scholar
Hero Member
******
Posts: 1624


View Profile Email
« Reply #1 on: May 12, 2024, 11:06:25 »

Um.
For those of us who don't speak programming, could someone please translate the above.
Logged

Personal opinion only.  Writings not representative of any union, collective, management or employer. (Think that absolves me...........)
grahame
Administrator
Hero Member
*****
Posts: 42047



View Profile WWW Email
« Reply #2 on: May 12, 2024, 11:16:13 »

Um.
For those of us who don't speak programming, could someone please translate the above.



If you quote a web address that has an abbreviation hidden in it, it can go wrong.   For example

https://www.realtimetrains.co.uk/search/detailed/gb-nr:MKM/to/gb-nr:SWI/2024-05-12/0000-2359?stp=WVS&show=all&order=wtt

won't work because of the "SWI" and "MKM" in there, both of which will usually expand.



If you mention MKM» (Melksham (Station code) - next trains) and SWI» (Swindon - next trains) earlier in the message, though, it will work:

https://www.realtimetrains.co.uk/search/detailed/gb-nr:MKM/to/gb-nr:SWI/2024-05-12/0000-2359?stp=WVS&show=all&order=wtt

and if you wish to use the abbreviations within text and not have them expand - as I did at the start of this message - you can add something like [ I ][/ I ] in the middle of the abbreviation - won't be seen, but will mean that the letters of the abbreviation are no longer up against each other in the raw message.
« Last Edit: May 12, 2024, 11:21:41 by grahame » Logged

Coffee Shop Admin, Acting Chair of Melksham Rail User Group, Option 24/7 Melksham Rep
Mark A
Global Moderator
Hero Member
*****
Posts: 1583


View Profile
« Reply #3 on: May 12, 2024, 11:52:02 »

Thanks for that!

Mark
Logged
Do you have something you would like to add to this thread, or would you like to raise a new question at the Coffee Shop? Please [register] (it is free) if you have not done so before, or login (at the top of this page) if you already have an account - we would love to read what you have to say!

You can find out more about how this forum works [here] - that will link you to a copy of the forum agreement that you can read before you join, and tell you very much more about how we operate. We are an independent forum, provided and run by customers of Great Western Railway, for customers of Great Western Railway and we welcome railway professionals as members too, in either a personal or official capacity. Views expressed in posts are not necessarily the views of the operators of the forum.

As well as posting messages onto existing threads, and starting new subjects, members can communicate with each other through personal messages if they wish. And once members have made a certain number of posts, they will automatically be admitted to the "frequent posters club", where subjects not-for-public-domain are discussed; anything from the occasional rant to meetups we may be having ...

 
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
This forum is provided by customers of Great Western Railway (formerly First Great Western), and the views expressed are those of the individual posters concerned. Visit www.gwr.com for the official Great Western Railway website. Please contact the administrators of this site if you feel that the content provided by one of our posters contravenes our posting rules (email link to report). Forum hosted by Well House Consultants

Jump to top of pageJump to Forum Home Page