Skip to main content

Bravo! You have received a Mercantilism Diploma in "onomatopoeia" from
the Orbital Convergence University International Air and Water Embassy of the Tangerine Planet (the planet that is one ellipse further from the Sun than Earth's ellipse).

You are now officially certified to include "onomatopoeia" in your practice!

Encore! Encore! Encore! Encore!


onomatopoeia


description

Started from the shell, "onomatopoeia" presents files in the current working
directory (CWD) that have extension ".O.HTML" (case sensitive).


obtainment

[xonsh] pip install onomatopoeia


tutorial

[xonsh] onomatopoeia help


the shell interface

[xonsh] onomatopoeia

"onomatopoeia" starts on port 20000, or the first avaible port after that.

This is the equivalent of:
[xonsh] onomatopoeia start --port 20000


Alternatively you can add --static-port and "onomatopoeia"
stops if the port specified is unavailable.
[xonsh] onomatopoeia start --port 20000 --static-port


This is an example ".O.HTML" file.

<pre>
	<h1>This is an example HTML file.</h1>
	<p>
		It really only needs the "pre" tag to    
		look like a reflection of its contents in a browser.   
	</p>   
	<p>
		Tags like "html" and "body" are actually not   
		necessary for rendering HTML in modern browsers.  
	</p>   
	<p>  
		for text to wrap, instead of extending off the page,    
		style "white-space: pre-wrap" can be utilized instead of 
		a "pre" tag like so:
		
		<div style="white-space: pre-wrap"></div>
	</p>
</pre>

However, here is the "CSS1Compat" option,
https://developer.mozilla.org/en-US/docs/Web/HTML/Quirks_Mode_and_Standards_Mode

with scaling based on the browser screen "viewport" of the screen,
https://developer.mozilla.org/en-US/docs/Web/HTML/Viewport_meta_tag

and support for UTF-8 characters.
http://www.unicode.org/charts
https://www.w3.org/International/questions/qa-html-encoding-declarations

<!doctype html>
<html>
	<head>	
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1" />
	</head>
	<body>
		<main>
			<article style="white-space: pre-wrap">
				
			
			</article>
		</main>
	</body>
</html>

the python3 interface

import pathlib
from os.path import dirname, join, normpath
this_folder = pathlib.Path (__file__).parent.resolve ()

import onomatopoeia
onomatopoeia.start ({
	"extensions": [ 
		'.O.HTML',
		'.S.HTML',
		'.$.HTML',
		'.s.HTML',
		'.6.HTML',
		'.jpg', 
		'.png' 
	],
	
	#
	#	This is the node from which the traversal occur.
	#
	"directory": str (this_folder) + "/structures/onomatopoeia",
	
	#
	#	This path is removed from the absolute path of share files found.
	#
	"relative path": str (this_folder) + "/structures/onomatopoeia",
	
	
	#
	#	The first port to check
	#
	"port": 20000,
	
	#
	#	Whether to check more ports if port is unavailable
	#
	"static port": False,
	
	#
	#	0, 1, 2
	#
	"verbose": 1,
})

import time
while True:
	time.sleep (1000)

contacts

graceful.bryonics@proton.me

Metadata

Release files for onomatopoeia 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for onomatopoeia 1.3.0
File Size Uploaded
onomatopoeia-1.3.0.tar.gz 31.6 kB Details

Release files / onomatopoeia-1.3.0.tar.gz

Download URL onomatopoeia-1.3.0.tar.gz
Size 31.6 kB
Tags Source
SHA-256 checksum
How to use checksums
32fe4e34c9ef12821fcbd48062346eabb934fe9dcfe9f86c7dc4d9be5d840787
BLAKE2b-256 checksum
How to use checksums
5a1750a251e2fe0cc941df0bdf72f51bce770ad05a70929a8e40fe7d63980460
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-41-generic

Release history Release notifications | RSS feed

This release

1.3.0 This release

1 release file

1.2.0

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page