Skip to content

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Aug 31, 2025

This PR adds a basic HTML page that provides a simple web interface for the Tibetan sorting functionality, making it easy to use and embed as an iframe.

Features

The new index.html file provides:

  • Clean, responsive interface with the requested title "Tibetan Sorting app"
  • Large text input area for entering Tibetan text or EWTS transliteration (one item per line)
  • Two sorting buttons as requested:
    • "Sort" - sorts Unicode Tibetan text using the library's compare() function
    • "Sort Wylie" - sorts EWTS (Extended Wylie) transliteration using the compareEwts() function
  • Iframe-friendly design - easily embeddable in other websites
  • Error handling with user-friendly alerts for empty input
  • Example text in placeholder to help users understand the input format
  • Keyboard shortcuts (Ctrl+1 for Sort, Ctrl+2 for Sort Wylie)

Usage

Users can:

  1. Enter Tibetan text or EWTS transliteration in the text area (one item per line)
  2. Click either sorting button
  3. See the sorted result replace the original content in the same text area

Example

Input:

ཤེས་རབ་
སྙིང་པོ་ 
ཐེག་པ་
ཆོས་ཀྱི་

After clicking "Sort":

ཆོས་ཀྱི་
སྙིང་པོ་
ཐེག་པ་
ཤེས་རབ་

The app correctly sorts according to traditional Tibetan alphabetical order using the repository's proven sorting algorithms.

Iframe Embedding

The page is designed to work seamlessly when embedded:

<iframe src="path/to/index.html" title="Tibetan Sorting App" width="800" height="600"></iframe>

Files Added

  • index.html - The main sorting application
  • HTML-APP-README.md - Documentation for the HTML app

Tibetan Sorting App

The implementation is minimal and focused, adding only the essential functionality requested without modifying any existing library code.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits August 31, 2025 14:16
Co-authored-by: eroux <60868+eroux@users.noreply.github.com>
Co-authored-by: eroux <60868+eroux@users.noreply.github.com>
@Copilot Copilot AI changed the title [WIP] please create a very basic html page, possibly (but not necessarily) on github pages that is very easy to include as an iframe. The page should just have a title "Tibetan Sorting app", and have one relatively large text input area and two buttons: "so... Add Tibetan Sorting HTML app with iframe support Aug 31, 2025
@Copilot Copilot AI requested a review from eroux August 31, 2025 14:21
Copilot finished work on behalf of eroux August 31, 2025 14:21
Copy link
Contributor

@eroux eroux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please make it so that it is automatically deployed on github pages at each push

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants