LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-18-2015, 03:21 AM   #1
rblampain
Senior Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 11
Posts: 1,288

Rep: Reputation: 52
Need inspiration in html "what must happen".


We have text files translated by software in many languages (French, Hindi, etc.) most of which we are unable to verify. Many of those translations are simply garbage. To solve the problem we are putting on the Internet the translated pages as a wiki where each line (or paragraph) can be identified to be corrected if necessary by a foreign visitor who has some knowledge of English.
This is where my imagination/experience is lacking because I can only see a solution in a submitted Form which would go back to the server with a reference to that particular line or paragraph and constructs from there a page containing the English version of the line or paragraph and a empty Textarea for a correction of the bad tranlsation to be submitted, this would be followed by a returned page to the visitor including the new correction. But I am of the opinion that this may take too long and deter volunteers to do that.

To arrive at the result we have so far, a normal (valid w3c) HTML document is split in 2 files, one file contains the html tags (.tags) and the other file contains only the text (.text). In this case, the .text file can be translated and its result reinserted in the .tags file to constitute a new valid html document in another language.

What seems to be ideal to me would be to have that split .text file (in English) loaded but invisible somehow at the same time than the html document and the relevant line made visible for editing at the click of a button. In other words, when a visitor clicks a link next to a line or paragraph, 2 windows should open, one containing the English version of that line and the other being a Textarea to input a correction of the incorrect translation. Could this be achieve through CSS?

I used some Javascript many years ago but I would prefer not to go that way. If the solution is too complex, it will be better for us to build the document from the start with 3 visible zones for each line/paragraph.

Any suggestion welcome.

Thank you for your help.
 
Old 11-18-2015, 08:45 AM   #2
vmccord
Member
 
Registered: Jun 2012
Location: Topeka, KS
Distribution: Mostly AWS
Posts: 71
Blog Entries: 31

Rep: Reputation: Disabled
<a href="http://www.google.com" onclick="window.open('http://www.yahoo.com','');">multiple window link</a>

This uses whatever the browser has as the default for handling new windows, tabs, etc. You could specify a size so that the second one is a separate window. Like this:

<a href="http://www.google.com" onclick="window.open('http://www.yahoo.com','','width=700,height=700');">multiple window link</a>

I couldn't decide which I liked better.

Last edited by vmccord; 11-18-2015 at 08:47 AM.
 
1 members found this post helpful.
Old 11-25-2015, 07:36 AM   #3
rblampain
Senior Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 11
Posts: 1,288

Original Poster
Rep: Reputation: 52
I have discovered the "display: none;" to hide the code/text needed for a correction and a javascript to make it visible at the click of a link but I cannot include the code here because I stil have bugs in it. But I will do so later if anyone wants it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Epic lack of inspiration. How can I boot "/dev/sdd" (an entire hard drive) with LILO? Darth Vader Slackware 5 01-01-2011 02:07 PM
Install NS-2.28 under Fedora 10 happen "Ns make failed" alloiatry Linux - Newbie 5 12-16-2010 05:59 AM
Perl - Can't use string ("html") as an ARRAY ref while "strict refs" OldGaf Programming 9 08-11-2009 11:14 AM
[SOLVED] Could this Windows "trick" happen in Linux / Firefox ? MBA Whore Linux - Software 2 07-23-2006 08:36 AM
a error happen when "make install" a drive zhenguohui Linux - Wireless Networking 1 04-20-2006 08:07 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration