<?xml version="1.0" encoding="utf-8"?>
<messages xmlns="urn:RAG.Phrases"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="urn:RAG.Phrases ./phrases.xsd" >

<!--
  Although the XML structure and schema are my work, please assume the contents of this
  XML (especially the phrases themselves) are copyright of National Rail. Unlicensed.

  Sources for these phrases:

  * https://youtube.com/watch?v=ftiB6HLjWCM (Crewe)
  * https://youtube.com/watch?v=14B_6H5QusI (Reading)
  * https://youtube.com/watch?v=OOUQ0V7wS5U (Shrewsbury)
  * https://youtube.com/watch?v=v-eqKjbXlaw (Southampton)
  * https://youtube.com/watch?v=2Qe6PRLTvnI (Swindon)
  * https://www.scribd.com/document/105631178/National-Rail-Delay-Phrases

  See also the `ref` folder.
-->

<!-- Main set of phrases -->

<phraseset id="root">
  <!-- Train waiting at platform -->
  <phrase>
    <phraseset ref="platform_wait_intro"/>
    <phraseset ref="calling_at" chance="50"/>
    <phraseset ref="mind_the_gap" chance="5"/>
    <phraseset ref="change_at" chance="5"/>
    <phrase ref="not_stopping" chance="5"/>
    <phraseset ref="request_stop" chance="5"/>
    <phrase ref="coach_count" chance="90"/>
    <phraseset ref="catering_service" chance="5"/>
    <phrase ref="ticket_conditions" chance="10"/>
    <phrase ref="train_full" chance="5"/>
    <phraseset ref="train_layout" chance="5"/>
    <phrase ref="platform_wait_end" chance="50" />
  </phrase>

  <!-- Train departing from platform -->
  <phrase>
    The train at platform <platform/> is the <phrase ref="service_to"/>.
    <phraseset ref="calling_at"/> Will passengers intending to travel on this service
    please join the train now, as it is ready to leave. <phrase ref="platform_wait"/>,
    which is ready to leave.
  </phrase>

  <!-- Terminating train -->
  <phrase>
    Platform <platform/> for the <phrase ref="service"/> service from
    <station context="source"/>. This train will terminate here.
  </phrase>

  <!-- Delayed and cancelled trains -->
  <phrase>
    <phrase ref="attention_please_platform" chance="25"/>
    <phraseset ref="apology_begin"/> <phrase ref="service"/> service to
    <phrase ref="destination"/><phraseset ref="delayed_or_cancelled"/>
    <phraseset ref="excuse_or_wait" chance="50"/>
    <phraseset ref="service_apology" chance="50"/>
    <phrase ref="next_fastest" chance="5"/>
  </phrase>

  <!-- General service delay -->
  <phrase>
    We are sorry that services are subject to delay because of <excuse/>
    <phraseset ref="delay_at_near" chance="50"/>.
    <phraseset ref="service_apology" chance="50"/>
  </phrase>

  <!-- Platform alterations -->
  <phrase>
    This is a platform alteration. The <phrase ref="service"/>
    <phraseset ref="platform_alteration_part1"/>
    <phraseset ref="platform_alteration_part2"/>
  </phrase>

  <!-- Non-stop trains -->
  <phrase>
    <phrase ref="nonstop_pre" chance="25"/> <phraseset ref="nonstop_begin"/>
    <platform/> does not stop here. <phrase ref="nonstop_end" chance="25"/>
  </phrase>

  <!-- Out of service trains -->
  <phrase>
    The next train to arrive at platform <platform/> is not in passenger service. Please
    do not board the next train at platform <platform/>.
  </phrase>

  <!-- Various notices and reminders (e.g. security) -->
  <phrase>
    <phrase ref="attention_please" chance="10"/> <phraseset ref="notices"/>
  </phrase>
</phraseset>

<!-- Main set of notices -->

<phraseset id="notices">
  <phrase>
    Please note, to ensure a timely departure, train doors will be locked shut up to 40
    seconds before departure. Thank you.
  </phrase>
  <phrase>
    For your safety and comfort, this station operates a no-smoking policy.
  </phrase>
  <phrase>
    Smoking is not permitted at this station.
  </phrase>
  <phrase>
    All of our trains and stations are no-smoking areas. Please do not smoke until you
    have left the station premesis.
  </phrase>
  <phrase>
    <phraseset ref="security_announcement" chance="10"/> 24 hour C.C.T.V. recording is in
    operation at this station for the purpose of security and safety management.
  </phrase>
  <phrase>
    <phraseset ref="security_announcement" chance="10"/> Closed circuit television and
    remote video monitoring is in use at this station for your personal safety and
    security.
  </phrase>
  <phrase>
    <phraseset ref="security_announcement" chance="25"/> Please do not leave your personal
    belongings unattended on the station. Any personal belongings left unattended may be
    removed without warning, or destroyed or damaged by the security services.
  </phrase>
  <phrase>
    <phraseset ref="security_announcement" chance="25"/> Please do not leave your luggage
    unattended on the station. Luggage left unattended may be removed without warning, or
    destroyed or damaged by the security services.
  </phrase>
  <phrase>
    Penalty fares apply across the entire <service context="provider"/> network. Please
    ensure that you buy your ticket before you board, where facilities are available.
  </phrase>
  <phrase>
    <phraseset ref="security_announcement" chance="50"/> If you see something that doesn't
    look right, speak to staff or text the British Transport Police on 61016. We'll sort
    it. See it, say it, sorted.
  </phrase>
  <phrase>
    <phraseset ref="safety_announcement" chance="50"/> Please take care when using the
    escalators located on this station. If you have luggage or a bicycle, then please use
    the passenger lifts and ask for assistance if you need it. Thank you.
  </phrase>
  <phrase>
    <phraseset ref="safety_announcement" chance="50"/> In the interests of safety, the
    riding of skateboards, rollerblades, and cycles on this station are prohibited.
    <phrase ref="bylaw_30" chance="50"/>
  </phrase>
  <phrase>
    <phraseset ref="safety_announcement" chance="50"/> It is not permitted to cycle,
    skateboard, or rollerblade within the station area.
  </phrase>
  <phrase>
    <phraseset ref="security_announcement" chance="50"/> Would all passengers please
    remain with their luggage, and personal belongings at all times, as any unattended
    items will be removed by the British Transport Police.
  </phrase>
  <phrase>
    <phraseset ref="security_announcement" chance="10"/> Security personnel tour this
    station 24 hours a day.
  </phrase>
  <phrase>
    Ticket checks are in operation at this station. Please have your tickets available
    for inspection.
  </phrase>
</phraseset>

<!-- Various parts of other phrases -->

<phrase id="attention_please">
  May I have your attention please.
</phrase>

<phrase id="attention_please_platform">
  May I have your attention please on platform <platform/>.
</phrase>

<phraseset id="platform_wait_intro">
  <phrase>
    <phrase ref="platform_wait"/>.
  </phrase>
  <phrase>
    The next train to depart from platform <platform/> will be the
    <phrase ref="service_to"/>.
  </phrase>
  <phrase>
    The next train to arrive at platform <platform/> will be the
    <phrase ref="service_to"/>.
  </phrase>
  <phrase>
    The train now approaching platform <platform/> is the <phrase ref="service_to"/>.
    <phrase ref="service_from" chance="50"/>
  </phrase>
</phraseset>

<phrase id="platform_wait">
  Platform <platform/> for the <phrase ref="service"/> service to
  <phrase ref="destination"/>
</phrase>

<phrase id="platform_wait_end">
  <phrase ref="platform_wait"/>.
</phrase>

<phrase id="destination">
  <station context="destination"/><phrase ref="dest_via" chance="10"/>
  <phrase ref="dest_split" chance="5"/>
</phrase>

<phrase id="dest_via">
  via <station context="via"/>
</phrase>

<phrase id="dest_split">
  and <station context="destination_split"/><phrase ref="dest_split_via" chance="10"/>
</phrase>

<phrase id="dest_split_via">
  via <station context="via_split"/>
</phrase>

<phrase id="service_to">
  <phrase ref="delayed" chance="5"/> <phrase ref="service"/> service to
  <phrase ref="destination"/>
</phrase>

<phrase id="delayed">
  delayed
</phrase>

<phrase id="service">
  <phrase ref="service_named" chance="5"/> <time context="main"/>
  <phrase ref="service_label" chance="90"/>
</phrase>

<phrase id="service_named">
  <named />, the
</phrase>

<phrase id="service_label">
  <service context="provider"/>
</phrase>

<phrase id="service_from">
  This is the service from <station context="source"/>.
</phrase>

<phraseset id="calling_at">
  <phrase>Calling at <stationlist context="calling"/>.</phrase>
  <phrase>
    Travel in the front <integer context='front_coaches' words="true"/> coaches for
    <stationlist context="calling_split"/>.
  </phrase>
  <phrase>
    For <stationlist context="calling_first"/>, travel in the front
    <integer context='front_coaches' words="true"/> coaches of the train. And
    for <stationlist context="calling_split"/>, travel in the rear
    <integer context='rear_coaches' words="true"/> coaches of the train.
  </phrase>
</phraseset>

<phraseset id="mind_the_gap">
  <phrase>
    Mind the gap between the train and the platform. Mind the gap.
  </phrase>
  <phrase>
    When boarding the train, please mind the gap between the train and the platform edge.
  </phrase>
</phraseset>

<phraseset id="apology_begin">
  <phrase>We are sorry to announce that the</phrase>
  <phrase>We are sorry that the</phrase>
</phraseset>

<phraseset id="delayed_or_cancelled">
  <phrase>is delayed.</phrase>
  <phrase>
    is delayed by approximately
    <integer context="delayed" plural="minutes" singular="minute"/>.
  </phrase>
  <phrase>
    has been cancelled.
  </phrase>
</phraseset>

<phraseset id="excuse_or_wait">
  <phrase><phrase ref="excuse"/>.</phrase>
  <phrase>Please listen for further announcements.</phrase>
</phraseset>

<phraseset id="excuse_pre">
  <phrase>Due to</phrase>
  <phrase>This is due to</phrase>
</phraseset>

<phrase id="excuse">
  <phraseset ref="excuse_pre"/> <excuse/> <phraseset ref="delay_at_near" chance="50"/>
</phrase>

<phraseset id="delay_at_near">
  <phrase>at <station context="excuse"/></phrase>
  <phrase>near <station context="excuse"/></phrase>
</phraseset>

<phraseset id="service_apology">
  <phrase>We apologise for the inconvenience this may cause you.</phrase>
  <phrase>We apologise for the disruption to your journey today.</phrase>
  <phrase>National Rail apologises for this delay.</phrase>
  <phrase><service context="provider"/> apologises for this delay.</phrase>
  <phrase>
    <service context="provider"/> apologises for the disruption to your journey today.
  </phrase>
</phraseset>

<!-- The destination for this train is lazily done, using destination_split. -->
<!-- Else, ideally, there needs to be a duplicate "destination" phrase.      -->
<phrase id="next_fastest">
  Passengers for <station context="via"/>, your next fastest direct service is now
  expected to be the <time context="alternative"/> to
  <station context="destination_split"/>, departing from platform <platform/>.
</phrase>

<phraseset id="platform_alteration_part1">
  <phrase>service to <phrase ref="destination"/>,</phrase>
  <phrase>service from <station context="source"/>,</phrase>
</phraseset>

<phraseset id="platform_alteration_part2">
  <phrase>will now depart from platform <platform/>.</phrase>
  <phrase>will now arrive at platform <platform/>.</phrase>
</phraseset>

<phrase id="nonstop_pre">
  Stand well back from the platform edge.
</phrase>

<phraseset id="nonstop_begin">
  <phrase>
    The train now approaching platform
  </phrase>
  <phrase>
    The next train at platform
  </phrase>
</phraseset>

<phrase id="nonstop_end">
  Stand back from the edge of platform <platform/>. The next train is not scheduled to
  stop.
</phrase>

<phraseset id="change_at">
  <phrase>
    Customers for <stationlist context="changes"/> should change at
    <station context="calling"/>.
  </phrase>
  <phrase>
    Change at <station context="calling"/> for the services to
    <stationlist context="changes"/>.
  </phrase>
</phraseset>

<phrase id="not_stopping">
  This train will not be calling at <stationlist context="not_stopping"/> today.
  <phrase ref="excuse"/>.
</phrase>

<phraseset id="request_stop">
  <phrase>
    <station context="calling"/> is a request stop, and passengers for this station should
    ask the conductor on the train to arrange for the train to stop,
    <phraseset ref="request_stop_end"/>
  </phrase>
  <phrase>
    <stationlist context="request"/> are request stops, and passengers for these stations
    should ask the conductor on the train to arrange for the train to stop,
    <phraseset ref="request_stop_end"/>
  </phrase>
</phraseset>

<phraseset id="request_stop_end">
  <phrase>to allow them to leave.</phrase>
  <phrase>to allow them to alight.</phrase>
</phraseset>

<phrase id="coach_count">
  <phraseset ref="coach_count_pre"/><phraseset ref="coaches_carriages"/>.
  <phrase ref="coach_end" chance="5"/>
</phrase>

<phraseset id="coach_count_pre">
  <phrase>This train is formed of</phrase>
  <phrase>This train has</phrase>
</phraseset>

<phrase id="coach_end">
  Please use all available doors when boarding the train.
</phrase>

<phraseset id="catering_service">
  <phrase>
    A trolley service of drinks and light refreshments is available on this train.
  </phrase>
  <phrase>
    A buffet counter service of hot and cold snacks is available on the train.
  </phrase>
  <phrase>
    An at-seat service of light refreshments is available on the train.
  </phrase>
  <phrase>
    There are no catering facilities available on the train.
  </phrase>
  <phrase>
    You can find the shop in coach <coach context="shop"/> for delicious hot and cold
    refreshments.
  </phrase>
</phraseset>

<phrase id="ticket_conditions">
  Please be aware that tickets marked “<service context="alternative"/> only” are not
  valid on this train.
</phrase>

<phrase id="train_full">
  Please note this train is full and standing. Please allow all customers to leave the
  train before boarding.
</phrase>

<phraseset id="train_layout">
  <!-- I was planning to use smarter phraseset tags here to avoid repeating stuff, but -->
  <!-- I got lazy. -->
  <phrase>
    First class accommodation is available on the train.
  </phrase>
  <phrase>
    First class is at the front of the train.
  </phrase>
  <phrase>
    First class is at the rear of the train.
  </phrase>
  <phrase>
    First class is at the front, standard class is at the middle and rear, bicycle spaces
    are at the very rear. <phrase ref="bike_booking" chance="50"/>
  </phrase>
  <phrase>
    First class is at the rear, standard class is at the middle and front, bicycle spaces
    are at the very front. <phrase ref="bike_booking" chance="50"/>
  </phrase>
  <phrase>
    First class is available at the front of the train as it arrives at the station. This
    will be at the rear of the train as it departs.
  </phrase>
  <phrase>
    First class coaches can be found at the front of the train, standard can be found at
    the rear.
  </phrase>
  <phrase>
    First class coaches can be found at the rear of the train, standard can be found at
    the front.
  </phrase>
  <phrase>
    Standard unreserved seating can be found in coaches <coach context="standard1"/> and
    <coach context="standard2"/>, with first class unreserved seating in coach
    <coach context="first"/>.
  </phrase>
</phraseset>

<phraseset id="safety_announcement">
  <phrase>
    This is a safety announcement.
  </phrase>
  <phrase>
    This is a safety message.
  </phrase>
</phraseset>

<phraseset id="security_announcement">
  <phrase>
    This is a security announcement.
  </phrase>
  <phrase>
    This is a security message.
  </phrase>
</phraseset>

<phrase id="bylaw_30">
  Offenders may be prosecuted under the railway bylaw number 30.
</phrase>

<phrase id="bike_booking">
  Please be aware that you can only bring a bicycle on this service if you have booked
  beforehand.
</phrase>

<phrase id="sample">
  <phrase ref="attention_please"/> <phraseset ref="notices" idx="9"/>
</phrase>

<!-- Common vocabulary collections -->

<phraseset id="coaches_carriages">
  <phrase>
    <integer context="coaches" singular="coach" plural="coaches" words="true"/>
  </phrase>
  <phrase>
    <integer context="coaches" singular="carriage" plural="carriages" words="true"/>
  </phrase>
</phraseset>

<!-- Preview phrases for the VOX editor -->

<phrase id="voxeditor_excuse_mid">
  <vox key="phraseset.root.4.0">We are sorry that services are subject to delay because
  of</vox> <excuse/> <vox key="phraseset.delay_at_near.0.0">at</vox>
  <station context="excuse"/>. <vox key="phraseset.excuse_pre.1.0">This is due to</vox>
  <excuse/> <vox key="phraseset.delay_at_near.1.0">near</vox> <station context="excuse"/>.
</phrase>

<phrase id="voxeditor_excuse_end">
  <vox key="phraseset.root.4.0">We are sorry that services are subject to delay because
  of</vox> <excuse/>. <vox key="phraseset.excuse_pre.1.0">This is due to</vox>
  <excuse/>.
</phrase>

<phrase id="voxeditor_letter_mid">
  <vox key="phraseset.catering_service.4.0">You can find the shop in coach</vox>
  <coach context="first"/> <vox key="phraseset.catering_service.4.2">for delicious hot and
  cold refreshments.</vox>
</phrase>

<phrase id="voxeditor_letter_end">
  <vox key="phraseset.train_layout.8.4">with first class unreserved seating in
  coach</vox> <coach context="first"/>.
</phrase>

<phrase id="voxeditor_named_mid">
  <vox key="phrase.platform_wait.0">Platform</vox> <platform/>
  <vox key="phrase.platform_wait.2">for the</vox> <named />
  <vox key="phrase.service_named.2">, the</vox> <time context="main"/>
  <vox key="phrase.platform_wait.4">service to</vox> <station context="destination"/>.
</phrase>

<phrase id="voxeditor_number_mid">
  <vox key="phrase.platform_wait.0">Platform</vox> <platform/>
  <vox key="phrase.platform_wait.2">for the</vox> <time context="main"/>
  <vox key="phrase.platform_wait.4">service to</vox> <station context="destination"/>.
</phrase>

<phrase id="voxeditor_number_end">
  <vox key="phrase.attention_please_platform.0">May I have your attention please on
  platform</vox> <platform/>.
  <vox key="phraseset.root.7.2">is not in passenger service. Please do not board the next
  train at platform</vox> <platform/>.
</phrase>

<phrase id="voxeditor_platform_mid">
  <vox key="phrase.platform_wait.0">Platform</vox> <platform/>
  <vox key="phrase.platform_wait.2">for the</vox> <time context="main"/>
  <vox key="phrase.platform_wait.4">service to</vox> <station context="destination"/>.
</phrase>

<phrase id="voxeditor_platform_end">
  <vox key="phrase.attention_please_platform.0">May I have your attention please on
  platform</vox> <platform/>.
  <vox key="phraseset.root.7.2">is not in passenger service. Please do not board the next
  train at platform</vox> <platform/>.
</phrase>

<phrase id="voxeditor_service_mid">
  <vox key="phrase.platform_wait.0">Platform</vox> <platform/>
  <vox key="phrase.platform_wait.2">for the</vox> <time context="main"/>
  <service context="provider"/> <vox key="phrase.platform_wait.4">service to</vox>
  <station context="destination"/>. <vox key="phrase.ticket_conditions.0">Please be aware
  that tickets marked "</vox> <service context="alternative"/>
  <vox key="phrase.ticket_conditions.2">only" are not valid on this train.</vox>
  <service context="provider"/> <vox key="phraseset.service_apology.4.2">apologises for
  the disruption to your journey today.</vox>
</phrase>

<phrase id="voxeditor_station_mid">
  <vox key="phrase.platform_wait.4">service to</vox>
  <station context="destination"/> <vox key="phrase.dest_via.0">via</vox>
  <station context="via"/>. <vox key="phraseset.calling_at.0.0">Calling at</vox>
  <stationlist context="calling"/>.
</phrase>

<phrase id="voxeditor_station_end">
  <vox key="phrase.platform_wait.4">service to</vox>
  <station context="destination"/>. <vox key="phraseset.calling_at.0.0">Calling at</vox>
  <stationlist context="calling"/>.
</phrase>

<phrase id="voxeditor_time_begin">
  <vox key="phrase.platform_wait.0">Platform</vox> <platform/>
  <vox key="phrase.platform_wait.2">for the</vox> <time context="main"/>
  <vox key="phrase.platform_wait.4">service to</vox> <station context="destination"/>.
  <vox key="phrase.next_fastest.2">your next fastest direct service is now expected to be
  the</vox> <time context="alternative"/> to <station context="destination_split"/>.
</phrase>

<phrase id="voxeditor_time_mid">
  <vox key="phrase.platform_wait.0">Platform</vox> <platform/>
  <vox key="phrase.platform_wait.2">for the</vox> <time context="main"/>
  <vox key="phrase.platform_wait.4">service to</vox> <station context="destination"/>.
  <vox key="phrase.next_fastest.2">your next fastest direct service is now expected to be
  the</vox> <time context="alternative"/> to <station context="destination_split"/>.
</phrase>

</messages>