Comments (6)
I wrote some code that supports this, but not really in any "pretty" way. It doesn't just strip emoji characters, but instead allows you to set an output encoding and then ignores any characters that don't fall within that encoding.
The problem is this is really really broad. So, for example, if you have the weather calendar added and set the output to 'ascii' (which is pretty much the only logical choice besides your system default), it will strip the degree symbol (°) since that's not in the ascii range. And if you do things like use "latin_1" you end up with odd characters displayed in place of emoji and other unicode characters...
So that's the only way I can think to do this (other then trying a regex for emoji character ranges, but that failed when I attempted to do it.)
from gcalcli.
@Cantello can you try the code from @tresni? I'm curious how that works for you and whether or not something we should pursue.
from gcalcli.
This is actually a rather late comment (sorry for that!), but the code from @tresni did not work as expected. When using ascii as the encoding, all umlauts were also stripped (as was to be expected). I did not find any suitable encoding that left the umlauts intact and stripped the emojis.
Anything else I could try?
FYI, I used the changes to change my local version (v2.3) as I can't seem to run any newer version (Error: [gcalcli] is an invalid command.") on my Mac, but that is a different problem...
from gcalcli.
This is way outside my range of expertise but curious. I've also experienced some weirdness with unicode chars in other terminal apps. Basically a unicode char has no whitespace and it butted up and/or slightly overlapping the next character.
Is it possible this is a font and/or terminal rendering issue? I'm not sure but just throwing this out there.
from gcalcli.
Definitely font issues on osx. There doesn't seem to be any consistent
spacing between the emoji characters at least
On Oct 14, 2013 4:16 PM, "Eric Davis" [email protected] wrote:
This is way outside my range of expertise but curious. I've also
experienced some weirdness with unicode chars in other terminal apps.
Basically a unicode char has no whitespace and it butted up and/or slightly
overlapping the next character.Is it possible this is a font and/or terminal rendering issue? I'm not
sure but just throwing this out there.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/17#issuecomment-26293506
.
from gcalcli.
We now use the native encoding of the environment to output. If the issue was actually due to glyph rendering with particular fonts, that's out of scope for us, I think---the user should change fonts to one that supports the characters that they use.
from gcalcli.
Related Issues (20)
- Google Calendar
- Imports are disorganized
- Hourly authentication "The authentication flow has completed."
- Use of summaryOverride HOT 1
- README.md discrepancy
- Importing a .vcs with no events crashes gcalcli
- Formatting and first day of week
- Add option to combine default reminders with custom reminders
- --lineart unicode TypeError: can't concat str to bytes
- App 'gcalcli' is blocked - The out-of-band (OOB) flow has been blocked HOT 8
- DeprecationWarning
- Editing based on unique identifiers?
- Editing an recurring event seems to copy it instead of editing the selected "event instance"
- List Availability
- Access blocked: Authorization Error HOT 1
- HELP: What do I specify? (Documention missing bug)
- HELP!!! GCalCli stopped working! I can only list calendars, and cannot do anything else HOT 11
- Out-Of-Band (OOB) flow
- FEATURE REQUEST: Hooks into `eventTypes` (e.g. "Out of Office" or "Focus Time")
- "Something went wrong" google error when setting up oauth 2.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gcalcli.