css

From twext

(Redirected from CSS)
Jump to: navigation, search

css means cascading style sheets.. we can (and do) use css to format bifocal bitext and get text twext.. other options to format twext for sharing online may be flex..

[edit] tutorial

css is easy, easier than html and more powerful.. if you're a beginner, like me, here are some references:

[edit] without float

There are many CSS layouts out there. Some rely on AP (Absolutely Positioned) elements, others use FLOATs. The former method is considered bad practice for its lack of flexibility while the latter is a powerful solution in building robust layouts.

Unfortunately, like most powerful tools, FLOATs can be a dangerous method to employ or at least very frustrating. First of all, the FLOAT concept itself is not easy to properly understand, and second of all, FLOATs are a source of many browser bugs (mainly IE bugs) which make FLOAT constructs difficult to master across browsers... and easy to break.

This article demonstrates an original solution that addresses semantics, construct, and design issues to deliver robust layouts.




























before making a plan to wixi twexter, we might first see how css or cascading style sheets can format twext, then include css in our plan

(here's the first test of real world wixi learning.. the problem is pretty simple.. if you know css, you can add a simple solution)

[edit] problem

html neither formats nor styles twext too well:

reinfocar
REFOCUS
para ver
FOR TO SEE
la traducción
THE TRANSLATION

it could look a lot better, like this:

Image:ReEnfocar.jpg

but instead of being just an image, the solution should be real text that is:

  • selectable
  • restylable
  • reformatable
  • machine readable


[edit] solution

[edit] styles

maybe css can identify 2 text styles:

  1. a style for TEXT
  2. a style for twext (translation)

then, instead changing html markup, back and forth, over and over to switch between the styles, we could just put:

  • txt: language you are learning
  • twx: language you already know

to get: Image:TXTtwx.jpg

or something like that..


[edit] table

one way to format twext is with explicit tables.. it works with html, more or less, but not so hot..

reinfocar
REFOCUS
para ver
FOR TO SEE
la traducción
THE TRANSLATION

how would css work best using tables? must we even use tables? there is a problem with tables.. tables constrict larger chunks of translation:

reinfocar
REFOCUS
para ver
IN ORDER TO SEE
la traducción
THE TRANSLATION

[edit] no table

maybe css can format twext without tables:

Image:RefocusInOrderToSee.jpg

then we could fit more translation betwixt text.. each chunk of translation would still be centered directly under each chunk of text, but we might

  • get a little more room for translations and
  • end up with a nicer looking text

http://meyerweb.com/eric/css/edge/ shows some powerful uses of css without tables.. maybe we can find a solution that works on most browsers..


[edit] twexter css crash course

a big picture solution to the css problem may be a little crash course in css focused on the real world example of getting text twext..

lesson #1: find/make a diagram to explain how css, webpages, programs, data and users work together..

[edit] why css?

why use cascading style sheets?

[edit] user friendly

real world example: many don't like real twext because it's too hard to read:

Image:ReEnfocar.jpg

css lets users override default styling with personalized preferences, like semi twext:

Image:RefocusInOrderToSee.jpg

[edit] modular

html isn't too flexible or modular.. css is.. one different css page can change the look and feel of a webpage.. or even a whole website: see the css zen garden

[edit] bilingual

cascading style sheets seem like they offer powerful ways to make web pages both

  • readable for machines
  • beautiful for humans

[edit] creative

apparently, there's lots of room for creative presentations of twext text using CSS.. lots of room to play :)

[edit] ideas

[edit] twext line break

when a user resizes the width of a web page, more or fewer tables will fit on a single line of twext.. ideally, twext will be just as flexible as text.. see twext line break

[edit] fading twext

if a chunk of text has the same translation, and both are repeated in a presentation, then the repeats might learn to fade away.. (maybe more of a spec than a css trick)

image:TwextFade.png

[edit] mut

marked up twext might tag chunks of text with meaningful information which can be communicated with graphical styles.. for example:

Image:mut-grammar.jpg

not yet.. meanwhile, imaging color-coded twext parsed by grammar or slang, etc..

[edit] real world learning

the basic twext idea is pretty simple: faint style text inbetween normal style text..

Image:IfYouWant.jpg

a css noob could spend days parsing through tutorials, while a css master can probably whip out working solutions in no time..

an apprentice student might explain the solution, with ample reference to underlying systems..

a noob might then create simple images to even better understand how css works.. and thus, a meaningful learning system might grow..

[edit] reverse learning

reverse learning might be like "reverse-engineering".. start with a working solution, then work backwards to find out (and teach) how it really works..

































a screenshot of eric meyer's css: visit  the page and you'll find above text selectable.. wow!! how??
a screenshot of eric meyer's css: visit the page and you'll find above text selectable.. wow!! how??
Image:DiagramCSStwexter.jpg
visualize how css can be used in system to get text twext

Retrieved from "http://twext.com/css"
Personal tools